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.1.7 (#44) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://code.forgejo.org/actions/checkout) | action | patch | `v4.1.6` -> `v4.1.7` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>actions/checkout (actions/checkout)</summary> ### [`v4.1.7`](https://code.forgejo.org/actions/checkout/blob/HEAD/CHANGELOG.md#v417) [Compare Source](https://code.forgejo.org/actions/checkout/compare/v4.1.6...v4.1.7) - Bump the minor-npm-dependencies group across 1 directory with 4 updates by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/actions/checkout/pull/1739 - Bump actions/checkout from 3 to 4 by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/actions/checkout/pull/1697 - Check out other refs/\* by commit by [@&#8203;orhantoy](https://github.com/orhantoy) in https://github.com/actions/checkout/pull/1774 - Pin actions/checkout's own workflows to a known, good, stable version. by [@&#8203;jww3](https://github.com/jww3) in https://github.com/actions/checkout/pull/1776 </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/44 Co-authored-by: Johnny5 <bot@snaile.de> Co-committed-by: Johnny5 <bot@snaile.de>
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 != '' }}
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"