From fe3c20b618a4f47d128b10f9af22652f571cec0f Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 6 Oct 2021 08:42:40 +0200 Subject: [PATCH] add step for metadata debug, see if it runs by checking workflow tag name --- .github/workflows/containers.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 835d40a4..db07e7ca 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -6,12 +6,27 @@ on: types: [completed] release: - types: [created] + types: [created, published, edited] jobs: + metadata: + runs-on: ubuntu-latest + steps: + - name: Show metadata + run: | + echo SHA ${{ github.sha }} + echo github.ref: ${{ github.ref }} + echo github_ref: $GITHUB_REF + echo Event name: ${{ github.event_name }} + echo Ref ${{ github.ref }} + echo c: ${{ github.event.workflow_run.conclusion }} + echo r: ${{ github.event.workflow_run }} + echo tname: ${{ github.event.release.tag_name }} + set + on-success: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' || ${{ github.event.release.tag_name }} != '' }} steps: - uses: actions/checkout@v2 - name: Set up Python 3.9 @@ -31,9 +46,6 @@ jobs: # COPY'ed by Dockerfile into changedetectionio/ of the image, then read by the server in store.py echo ${{ github.sha }} > changedetectionio/source.txt echo ${{ github.ref }} > changedetectionio/tag.txt - echo Event name: ${{ github.event_name }} - echo Ref ${{ github.ref }} - set - name: Set up QEMU uses: docker/setup-qemu-action@v1