Skip to content

Commit 8de74bb

Browse files
committed
cd
1 parent 1b77c77 commit 8de74bb

4 files changed

Lines changed: 42 additions & 16 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

.github/workflows/common/extract-version.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
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 }}"

0 commit comments

Comments
 (0)