Skip to content

Commit bc23e83

Browse files
committed
Simplify
1 parent 20141c5 commit bc23e83

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/validate-pr-metadata.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@ on:
66
- opened
77
- edited
88
- reopened
9-
- synchronize
109

1110
jobs:
1211
test_sdc_tasks:
1312
name: Test SDC Tasks
1413
runs-on: ubuntu-slim
1514
permissions:
1615
pull-requests: write
17-
env:
18-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
ISSUE_URL: ${{ github.event.pull_request.html_url }}
16+
if: ${{ github.event.label.name == 'Needs Review' }}
2017
steps:
2118
- name: checkout base branch
2219
uses: actions/checkout@v5
@@ -57,6 +54,9 @@ jobs:
5754
gh pr comment $ISSUE_URL --body-file testoutput.txt
5855
- name: add appropriate labels
5956
if: steps.test-individual-shell-tools.outputs.complete == 'y' || steps.test-jq.outputs.complete == 'y' || steps.test-shell-pipelines.outputs.complete == 'y' || steps.test-implement-cowsay.outputs.complete == 'y'
57+
env:
58+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
ISSUE_URL: ${{ github.event.pull_request.html_url }}
6060
run: |
6161
gh pr edit $ISSUE_URL --add-label "Complete"
6262
gh pr edit $ISSUE_URL --remove-label "Needs Review"

0 commit comments

Comments
 (0)