chore(deps): update stefanzweifel/git-auto-commit-action action to v5 #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: updpkgsums | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- main | |
jobs: | |
updpkgsums: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Find updated package | |
run: | | |
#!/usr/bin/env bash | |
set -euxo pipefail | |
echo "pkgbuild=$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} "*PKGBUILD" | head -1 | xargs dirname)" >> $GITHUB_ENV | |
- name: Validate package | |
if: ${{ env.pkgbuild != '' }} | |
uses: ./.github/actions/aur | |
with: | |
action: 'updpkgsums' | |
pkgname: ${{ env.pkgbuild }} | |
- name: Commit | |
if: ${{ env.pkgbuild != '' }} | |
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 | |
with: | |
file_pattern: '*/PKGBUILD */.SRCINFO' |