File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ name: Python - Vendoring
3
3
4
4
on :
5
5
push :
6
- pull_request :
7
6
workflow_call :
8
7
inputs :
9
8
custom-property :
48
47
runs-on : ubuntu-latest
49
48
needs : [ custom-property ]
50
49
if : ${{ needs.custom-property.outputs.osstype == 'Actions' }}
50
+ permissions :
51
+ contents : write
52
+ pull-requests : write
51
53
steps :
52
54
- name : Checkout
53
55
uses : actions/checkout@v4
@@ -76,15 +78,14 @@ jobs:
76
78
CHANGES=$(git status --porcelain | wc -l)
77
79
echo "changes=$CHANGES" >> "$GITHUB_OUTPUT"
78
80
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 }}
81
83
uses : peter-evans/create-pull-request@v6
82
84
with :
83
85
token : ${{ github.token }}
84
86
commit-message : " [chore]: Update vendored dependencies"
85
87
title : " [chore]: Update vendored dependencies"
86
88
branch : update-vendored-dependencies
87
- base : ${{ github.event.before }}
88
89
labels : dependencies
89
90
body : |
90
91
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