Skip to content

Calculate Checksum

Calculate Checksum #19

name: Calculate Checksum
on:
workflow_run:
workflows: ["Cut Release and Create Source Tarball"]
types:
- completed
jobs:
calculate-checksum:
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Extract version
id: get_version
run: |
TAG="${{ github.event.workflow_run.head_branch }}"
echo "VERSION=${TAG#offscreen-}" >> $GITHUB_ENV
- name: Download tarball artifact
uses: dawidd6/action-download-artifact@v11
with:
name: offscreen-${{ env.VERSION }}.tar.gz
run_id: ${{ github.event.workflow_run.id }}
- name: Calculate SHA256 checksum
run: sha256sum offscreen-${{ env.VERSION }}.tar.gz > offscreen-${{ env.VERSION }}.sha256
- name: Upload checksum artifact
uses: actions/upload-artifact@v5
with:
name: offscreen-${{ env.VERSION }}.sha256
path: offscreen-${{ env.VERSION }}.sha256