File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ name: Python - Vendoring
33
44on :
55 push :
6- pull_request :
76 workflow_call :
87 inputs :
98 custom-property :
4847 runs-on : ubuntu-latest
4948 needs : [ custom-property ]
5049 if : ${{ needs.custom-property.outputs.osstype == 'Actions' }}
50+ permissions :
51+ contents : write
52+ pull-requests : write
5153 steps :
5254 - name : Checkout
5355 uses : actions/checkout@v4
@@ -76,15 +78,14 @@ jobs:
7678 CHANGES=$(git status --porcelain | wc -l)
7779 echo "changes=$CHANGES" >> "$GITHUB_OUTPUT"
7880
79- - name : " Update vendored dependencies (Push) "
80- if : ${{ steps.vendoring.outputs.changes != 0 && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
81+ - name : " Create Pull Request with updated vendored dependencies"
82+ if : ${{ steps.vendoring.outputs.changes > 0 }}
8183 uses : peter-evans/create-pull-request@v6
8284 with :
8385 token : ${{ github.token }}
8486 commit-message : " [chore]: Update vendored dependencies"
8587 title : " [chore]: Update vendored dependencies"
8688 branch : update-vendored-dependencies
87- base : ${{ github.event.before }}
8889 labels : dependencies
8990 body : |
9091 This is an automated PR to update that vendored dependencies are up to date.
You can’t perform that action at this time.
0 commit comments