Skip to content

Commit 63f7135

Browse files
committed
ignore issues with an OWS label
1 parent 7534a19 commit 63f7135

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

action.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ runs:
7777
echo "Not interested in this action, skipping"
7878
exit 0
7979
fi
80+
81+
# Exit if the issue already has an OWS label.
82+
# TODO: Support updates to Jira issues.
83+
for label in "${{ github.event.issue.labels.*.name }}"; do
84+
if [[ "$label" == OWS* ]]; then
85+
echo "Issue has a label starting with OWS, skipping"
86+
exit 0
87+
fi
88+
done
8089
8190
# last one wins
8291
echo "NeedsJiraUpdate=true" >> $GITHUB_ENV
@@ -235,6 +244,7 @@ runs:
235244
echo "Linked jira issue ${{ steps.create_jira_issue.outputs.jira_issue_key }} to jira epic ${{ inputs.JIRA_EPIC_KEY }}"
236245
237246
- name: Adding label to GitHub issue
247+
if: ${{ env.NeedsJiraUpdate == 'true' }}
238248
shell: bash
239249
run: |
240250
issue_number=${{ github.event.issue.number }}
@@ -249,6 +259,7 @@ runs:
249259
"https://api.github.com/repos/${owner}/${repo}/issues/${issue_number}/labels"
250260
251261
- name: Remove specific label from issue
262+
if: ${{ env.NeedsJiraUpdate == 'true' }}
252263
shell: bash
253264
run: |
254265
label_to_remove="${{ inputs.label }}"

0 commit comments

Comments
 (0)