Skip to content

Commit

Permalink
🐛 parse repository dispatch payload for cnspec (#882)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Oct 6, 2023
1 parent 31fc60e commit 8fb6d71
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cnspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Sanitize version input
- name: Sanitize version input (Workflow Dispatch)
if: github.event_name == 'workflow_dispatch'
run: |
TAG=${{ github.event.inputs.version }}
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- name: Sanitize version input (Repository Dispatch)
if: github.event_name == 'repository_dispatch'
run: |
TAG=${{ github.event.client_payload.version }}
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down

0 comments on commit 8fb6d71

Please sign in to comment.