Add xgensum pipeline

This commit is contained in:
Luca Bilke 2024-05-21 17:38:01 +02:00
parent 01357218b4
commit 9783bfe3c4
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
2 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,50 @@
name: Generate Checksum
on:
pull_request:
branches:
- "master"
paths:
- "srcpkgs/**"
jobs:
renovate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- 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 != '' }}
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
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"

View File

@ -2,6 +2,8 @@ name: Check build
on: on:
pull_request: pull_request:
branches:
- "master"
paths: paths:
- "srcpkgs/**" - "srcpkgs/**"
push: push:
@ -9,7 +11,6 @@ on:
- "dev-**" - "dev-**"
paths: paths:
- "srcpkgs/**" - "srcpkgs/**"
- ".forgejo/**"
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}