This commit is contained in:
parent
d3c80e02a3
commit
7aaf1131d2
10
.github/workflows/checksums.yml
vendored
10
.github/workflows/checksums.yml
vendored
@ -4,6 +4,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
jobs:
|
jobs:
|
||||||
checksums:
|
checksums:
|
||||||
runs-on: cn
|
runs-on: cn
|
||||||
@ -24,9 +26,7 @@ jobs:
|
|||||||
filename=$(basename "$file");
|
filename=$(basename "$file");
|
||||||
sha256sum -b "$file" | sed "s|$file|$filename|" > "${file}.sha256";
|
sha256sum -b "$file" | sed "s|$file|$filename|" > "${file}.sha256";
|
||||||
done
|
done
|
||||||
|
git add -A
|
||||||
|
git commit -m "chore: update checksums" || true
|
||||||
|
git push origin ${{ github.ref }}
|
||||||
unset IFS
|
unset IFS
|
||||||
- name: Commit changes
|
|
||||||
uses: actions/git-auto-commit-action@v5
|
|
||||||
with:
|
|
||||||
commit_message: "chore: update checksums"
|
|
||||||
file_pattern: "*.sha256"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user