2024-05-21 17:38:01 +02:00
|
|
|
name: Generate Checksum
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
paths:
|
|
|
|
- "srcpkgs/**"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
renovate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.event.pull_request.user.login == 'Johnny5'
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-07-20 15:31:21 +02:00
|
|
|
uses: https://code.forgejo.org/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2024-05-21 17:38:01 +02:00
|
|
|
|
|
|
|
- name: Get changed packages
|
|
|
|
id: changed
|
|
|
|
uses: https://github.com/tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44
|
|
|
|
with:
|
|
|
|
since_last_remote_commit: true
|
|
|
|
|
|
|
|
- name: Create hostrepo and prepare masterdir
|
|
|
|
if: ${{ steps.changed.outputs.all_changed_files != '' }}
|
|
|
|
run: |
|
|
|
|
ln -s "$(pwd)" /hostrepo &&
|
|
|
|
common/travis/set_mirror.sh &&
|
|
|
|
common/travis/prepare.sh &&
|
|
|
|
common/travis/fetch-xtools.sh
|
|
|
|
|
|
|
|
- name: Update checksums
|
|
|
|
if: ${{ steps.changed.outputs.all_changed_files != '' }}
|
|
|
|
run: |
|
|
|
|
for p in $(echo "${{ steps.changed.outputs.all_changed_files }}" | xargs -r -n 1 cut -d / -f 2); do
|
|
|
|
xgensum "$p"
|
|
|
|
done
|
|
|
|
|
|
|
|
- name: Commit
|
|
|
|
if: ${{ steps.changed.outputs.all_changed_files != '' }}
|
2024-05-22 13:52:11 +02:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
|
2024-05-21 17:38:01 +02:00
|
|
|
with:
|
|
|
|
commit_user_name: "Johnny5"
|
|
|
|
commit_user_email: "bot@snaile.de"
|
|
|
|
commit_author: "Johnny5 <bot@snaile.de>"
|
|
|
|
commit_message: "Update checksums"
|
|
|
|
file_pattern: "srcpkgs/*/template"
|