Skip to content

Commit

Permalink
Use repository dispatch for events
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Nov 23, 2023
1 parent 2232415 commit e65391d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/event.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: event

on:
workflow_dispatch:
# types:
# - HelmRelease/podinfo-hr-0.helm-benchmark
repository_dispatch:
types:
- HelmRelease/podinfo-hr-0.helm-benchmark

permissions:
contents: read
Expand All @@ -18,4 +18,8 @@ jobs:
ref: main
- name: Handle Flux event
run: |
echo ${{ github.event.client_payload }} | jq
echo '${{ toJson(github.event.client_payload) }}' | jq
- name: Extract Helm chart version
run: |
VERSION=$(echo ${{ github.event.client_payload.metadata.revision }} | cut -d '@' -f1)
echo $VERSION

0 comments on commit e65391d

Please sign in to comment.