Skip to content

Commit 9f77b1d

Browse files
authored
Merge pull request #114 from rossjrw/comment-on-skip
Post comment if deployment was skipped
2 parents 2fb559e + d819c05 commit 9f77b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ runs:
139139
- name: Leave a comment after deployment
140140
if: |
141141
env.deployment_action == 'deploy' &&
142-
env.deployment_status == 'success' &&
142+
(env.deployment_status == 'success' || env.deployment_status == 'skipped') &&
143143
(inputs.comment == 'true' || inputs.comment == true)
144144
uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2
145145
with:
@@ -165,7 +165,7 @@ runs:
165165
- name: Leave a comment after removal
166166
if: |
167167
env.deployment_action == 'remove' &&
168-
env.deployment_status == 'success' &&
168+
(env.deployment_status == 'success' || env.deployment_status == 'skipped') &&
169169
(inputs.comment == 'true' || inputs.comment == true)
170170
uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2
171171
with:

0 commit comments

Comments
 (0)