From 8fb6d718940d51087f0aa53b2dd77b5e8d313193 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Fri, 6 Oct 2023 14:09:53 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20parse=20repository=20dispatch=20?= =?UTF-8?q?payload=20for=20cnspec=20(#882)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ivan Milchev --- .github/workflows/cnspec.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cnspec.yaml b/.github/workflows/cnspec.yaml index b5c82069e..5e1fc5cc4 100644 --- a/.github/workflows/cnspec.yaml +++ b/.github/workflows/cnspec.yaml @@ -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