File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Compute Installer Hash
2+ description : GitHub Action to compute the SHA-256 hash of the Winri installer executable
3+
4+ outputs :
5+ HASH :
6+ description : " The SHA-256 hash of the installer executable"
7+ value : ${{ steps.get_hash.outputs.HASH }}
8+
9+ runs :
10+ using : composite
11+ steps :
12+ - uses : actions/checkout@v5
13+ - name : Download installer artifact
14+ uses : actions/download-artifact@v5
15+ with :
16+ name : winri-installer
17+ - name : Compute installer hash
18+ id : get_hash
19+ shell : bash
20+ run : |
21+ HASH=$(sha256sum winri_*_x64-setup.exe | awk '{print $1}')
22+ echo "HASH=$HASH" >> $GITHUB_OUTPUT
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Extract Version from Cargo.toml
2+ description : GitHub Action to extract version from Cargo.toml
3+
4+ outputs :
5+ VERSION :
6+ description : " The version extracted from Cargo.toml"
7+ value : ${{ steps.get_version.outputs.VERSION }}
8+
9+ runs :
10+ using : composite
11+ steps :
12+ - uses : actions/checkout@v5
13+ - name : Extract version from Cargo.toml
14+ shell : bash
15+ id : get_version
16+ run : |
17+ VERSION=$(grep -m1 '^version =' Cargo.toml | sed 's/version = "\(.*\)"/\1/')
18+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v5
22- - uses : ./.github/workflows/common/extract-version.yml
22+ - uses : ./.github/workflows/common/extract-version
23+ id : get_version
2324 - name : show version
2425 run : echo "Version is ${{ steps.get_version.outputs.VERSION }}"
You can’t perform that action at this time.
0 commit comments