Skip to content

Commit

Permalink
ci: generate xx-ld-shas
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Feb 12, 2023
1 parent e89803a commit 99ed353
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/prebuilt-ld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,58 @@ jobs:
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

open-pr:
runs-on: ubuntu-latest
if: ${{ inputs.release }}
needs:
- release
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Generate base/xx-ld-shas
run: |
cat >./base/xx-ld-shas <<EOL
#!/usr/bin/env sh
# DO NOT EDIT! Generated by ".github/workflows/prebuilt-ld.yml"
LD_SHAS=\$(
cat <<'EOT'
EOL
for file in ./dist/*-ld-*; do
echo "$(basename -- $file) $(sha1sum $file | cut -d' ' -f1)" >> ./base/xx-ld-shas
done
cat >>./base/xx-ld-shas <<EOL
EOT
)
export LD_SHAS
LD64_SHAS=\$(
cat <<'EOT'
EOL
for file in ./dist/ld64-*; do
echo "$(basename -- $file) $(sha1sum $file | cut -d' ' -f1)" >> ./base/xx-ld-shas
done
cat >>./base/xx-ld-shas <<EOL
EOT
)
export LD64_SHAS
EOL
-
name: Create PR
uses: peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04
with:
base: master
branch: bot/prebuilt-ld
commit-message: "update base/xx-ld-shas"
signoff: true
delete-branch: true
title: "Update `base/xx-ld-shas`"
draft: false

0 comments on commit 99ed353

Please sign in to comment.