File tree Expand file tree Collapse file tree 2 files changed +9
-16
lines changed
Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 11name : Changie Gen
22
33on :
4- workflow_run :
5- workflows : [Dependabot Labels]
6- types :
7- - completed
4+ pull_request :
5+ # catch when the PR is opened with the label or when the label is added
6+ types : [labeled]
7+
8+ permissions :
9+ contents : write
10+ pull-requests : read
811
912jobs :
1013 generate-changelog :
14+ if : contains(github.event.pull_request.labels.*.name, 'dependencies')
1115 env :
1216 MAIN_BRANCH : ${{ github.event.workflow_run.pull_requests[0].base.ref }}
1317 PR_BRANCH : ${{ github.event.workflow_run.pull_requests[0].head.ref }}
1923 uses : actions/checkout@v4
2024 with :
2125 ref : ${{ env.PR_BRANCH }}
22- token : ${{ secrets.ORG_GITHUB_TOKEN }}
26+ token : ${{ secrets.GITHUB_TOKEN }}
2327
2428 - name : Check if changelog file exists already
2529 if : github.event.workflow_run.conclusion == 'success'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments