-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (44 loc) · 1.57 KB
/
e2e.installer-action.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
on:
schedule:
- cron: "0 9 * * *"
workflow_dispatch:
permissions: read-all
concurrency: "e2e.installer-action"
env:
# UPDATE ON RELEASE: version.
LATEST_VERSION: v2.6.0
GH_TOKEN: ${{ secrets.E2E_GENERIC_TOKEN }}
ISSUE_REPOSITORY: slsa-framework/slsa-verifier
jobs:
installer:
runs-on: ubuntu-latest
steps:
# Install at tag.
# UPDATE ON RELEASE: tag.
- uses: slsa-framework/slsa-verifier/actions/[email protected]
- run: |
version=$(slsa-verifier version 2>&1 | grep GitVersion | cut -d ':' -f2 | tr -d "[:space:]")
[ "$version" == "${LATEST_VERSION:1}" ]
- run: |
binary_path=$(which slsa-verifier)
rm -rf "$binary_path"
# Install at commit.
# UPDATE ON RELEASE: commit sha.
- uses: slsa-framework/slsa-verifier/actions/installer@3714a2a4684014deb874a0e737dffa0ee02dd647 # v2.6.0
- run: |
version=$(slsa-verifier version 2>&1 | grep GitVersion | cut -d ':' -f2 | tr -d "[:space:]")
[ "$version" == "${LATEST_VERSION:1}" ]
if-succeeded:
runs-on: ubuntu-latest
needs: [installer]
if: needs.installer.result == 'success'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: ./.github/workflows/scripts/e2e-report-success.sh
if-failed:
runs-on: ubuntu-latest
needs: [installer]
if: always() && needs.installer.result == 'failure'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: ./.github/workflows/scripts/e2e-report-failure.sh