This commit is contained in:
parent
b7686f1639
commit
a4e8e23768
8
.github/workflows/checksums.yml
vendored
8
.github/workflows/checksums.yml
vendored
@ -11,16 +11,22 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
lfs: true
|
lfs: true
|
||||||
- name: Generate checksums
|
- name: Generate checksums
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
git lfs install --local
|
||||||
|
# disable credentials by actions/checkout for LFS endpoints
|
||||||
|
git -c "http.${GITHUB_SERVER_URL}/storage/lfs/.extraHeader=" lfs pull
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
for file in $(git ls-files | grep "^panel/" | grep -v ".sha256$" | grep -v ".txt$"); do
|
for file in $(git ls-files | grep "^panel/" | grep -v ".sha256$" | grep -v ".txt$"); do
|
||||||
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
|
||||||
|
unset IFS
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: actions/git-auto-commit-action@v5
|
uses: actions/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: "chore: update checksum files"
|
commit_message: "chore: update checksums"
|
||||||
|
file_pattern: "*.sha256"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user