Skip to content

Commit 9ae0505

Browse files
[SL-ONLY] Remove the label check and always close and reopen on change (#244)
1 parent 5cabaad commit 9ae0505

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

.github/workflows/silabs-open-csa-pr.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
# The PR event isn't triggered when the bot opens the PR and as such doesn't trigger the workflows that use the event as their trigger.
4343
# By closing and opening the PR, it forces the PR event to be triggered.
4444
- name: Check if PR is already closed and reopen if necessary
45-
id: check_and_reopen_pr
4645
run: |
4746
PR_NUMBER=$(gh pr list --repo ${{ github.repository }} --state open --head automation/update_main --json number --jq '.[0].number')
4847
if [ -z "$PR_NUMBER" ]; then
@@ -53,17 +52,6 @@ jobs:
5352
if ! echo "$LABELS" | grep -q "sl-automation-triggered"; then
5453
gh pr close $PR_NUMBER --repo ${{ github.repository }}
5554
gh pr reopen $PR_NUMBER --repo ${{ github.repository }}
56-
echo "pr_needs_label=true" >> $GITHUB_OUTPUT
57-
else
58-
echo "pr_needs_label=false" >> $GITHUB_OUTPUT
5955
fi
6056
env:
6157
GITHUB_TOKEN: ${{secrets.WORKFLOW_TOKEN}}
62-
63-
- name: Add label to PR
64-
if: ${{ steps.check_and_reopen_pr.outputs.pr_needs_label }}
65-
run: |
66-
PR_NUMBER=$(gh pr list --repo ${{ github.repository }} --state open --head automation/update_main --json number --jq '.[0].number')
67-
gh pr edit $PR_NUMBER --add-label "sl-automation-triggered"
68-
env:
69-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)