-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 961 Bytes
/
Copy pathcalculate_checksum.yml
File metadata and controls
34 lines (28 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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