void-packages/.forgejo/workflows/checksum.yaml

50 lines
1.5 KiB
YAML
Raw Normal View History

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
chore(deps): update actions/checkout action to v4.2.1 (#51) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://code.forgejo.org/actions/checkout) | action | minor | `v4.1.7` -> `v4.2.1` | --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v4.2.1`](https://code.forgejo.org/actions/checkout/blob/HEAD/CHANGELOG.md#v421) [Compare Source](https://code.forgejo.org/actions/checkout/compare/v4.2.0...v4.2.1) - Check out other refs/\* by commit if provided, fall back to ref by [@&#8203;orhantoy](https://github.com/orhantoy) in https://github.com/actions/checkout/pull/1924 ### [`v4.2.0`](https://code.forgejo.org/actions/checkout/blob/HEAD/CHANGELOG.md#v420) [Compare Source](https://code.forgejo.org/actions/checkout/compare/v4.1.7...v4.2.0) - Add Ref and Commit outputs by [@&#8203;lucacome](https://github.com/lucacome) in https://github.com/actions/checkout/pull/1180 - Dependency updates by [@&#8203;dependabot-](https://github.com/dependabot-) https://github.com/actions/checkout/pull/1777, https://github.com/actions/checkout/pull/1872 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguNiIsInVwZGF0ZWRJblZlciI6IjM3LjM2OC42IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Reviewed-on: https://git.snaile.de/snailed/void-packages/pulls/51 Co-authored-by: Johnny5 <bot@snaile.de> Co-committed-by: Johnny5 <bot@snaile.de>
2024-10-22 14:20:05 +02:00
uses: https://code.forgejo.org/actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
2024-05-21 17:38:01 +02:00
- name: Get changed packages
id: changed
uses: https://github.com/tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c # v44
2024-05-21 17:38:01 +02:00
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@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"