Improve workflow

- Print digest to summary dashboard
- Add workflow dispatch action
This commit is contained in:
InIPFS 2022-12-09 02:51:20 +00:00 committed by GitHub
parent 609f5295c7
commit c003148ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ on:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
workflow_dispatch:
jobs:
build:
@ -21,10 +22,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- run: ./build-with-docker.sh
- run: sh -exc 'if [ $(sha256sum dist/qubes-firewall.xen | cut -d " " -f 1) = $(grep "SHA2 last known" build-with-docker.sh | rev | cut -d ":" -f 1 | rev | cut -d "\"" -f 1 | tr -d " ") ]; then echo "SHA256 MATCHES"; else exit 42; fi'
- name: Build
run: ./build-with-docker.sh
- name: Verify
run: |
sh -exc 'if [ $(sha256sum dist/qubes-firewall.xen | cut -d " " -f 1) = $(grep "SHA2 last known" build-with-docker.sh | rev | cut -d ":" -f 1 | rev | cut -d "\"" -f 1 | tr -d " ") ]; then echo "SHA256 MATCHES"; else exit 42; fi'
echo '### sha256' >> $GITHUB_STEP_SUMMARY
sh -exc 'sha256sum dist/qubes-firewall.xen >> $GITHUB_STEP_SUMMARY'
- name: Upload Artifact
uses: actions/upload-artifact@v3
with: