Skip to content

Commit

Permalink
feat: Update Python vendor workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekMasher committed Sep 5, 2024
1 parent e4ae2f9 commit ec9a16e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/python-vendor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Python - Vendoring

on:
push:
pull_request:
workflow_call:
inputs:
custom-property:
Expand Down Expand Up @@ -48,6 +47,9 @@ jobs:
runs-on: ubuntu-latest
needs: [ custom-property ]
if: ${{ needs.custom-property.outputs.osstype == 'Actions' }}
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -76,15 +78,14 @@ jobs:
CHANGES=$(git status --porcelain | wc -l)
echo "changes=$CHANGES" >> "$GITHUB_OUTPUT"
- name: "Update vendored dependencies (Push)"
if: ${{ steps.vendoring.outputs.changes != 0 && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
- name: "Create Pull Request with updated vendored dependencies"
if: ${{ steps.vendoring.outputs.changes > 0 }}
uses: peter-evans/create-pull-request@v6
with:
token: ${{ github.token }}
commit-message: "[chore]: Update vendored dependencies"
title: "[chore]: Update vendored dependencies"
branch: update-vendored-dependencies
base: ${{ github.event.before }}
labels: dependencies
body: |
This is an automated PR to update that vendored dependencies are up to date.
Expand Down

0 comments on commit ec9a16e

Please sign in to comment.