Skip to content

Commit

Permalink
adjust workflow triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
finnigja committed May 3, 2024
1 parent bd76eb9 commit 0aecaea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-attested-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Build an attested image from latest release
on:
release:
types: [published]
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -34,7 +36,7 @@ jobs:
extract: true
- name: Verify attestation for latest release
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_FILE=`echo ${{ fromJson(steps.get-latest-release.outputs.downloaded_files)[0] }} | awk -F'/' '{print $NF}'`
echo $RELEASE_FILE
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build-attested-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build an attested release from latest tag
name: Build an attested release on tag push
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
id-token: write
Expand Down

0 comments on commit 0aecaea

Please sign in to comment.