Skip to content

Commit ec9a16e

Browse files
committed
feat: Update Python vendor workflow
1 parent e4ae2f9 commit ec9a16e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/python-vendor.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Python - Vendoring
33

44
on:
55
push:
6-
pull_request:
76
workflow_call:
87
inputs:
98
custom-property:
@@ -48,6 +47,9 @@ jobs:
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.

0 commit comments

Comments
 (0)