diff --git a/.github/workflows/build_pkg.yml b/.github/workflows/build_pkg.yml index dfe3c45..cf4aaad 100644 --- a/.github/workflows/build_pkg.yml +++ b/.github/workflows/build_pkg.yml @@ -32,6 +32,10 @@ on: message: type: string default: "" + +env: + GH_TOKEN: ${{ github.token }} + jobs: source: name: source package @@ -51,6 +55,9 @@ jobs: repository: ${{ inputs.repository }} ref: ${{ inputs.ref }} path: input + - name: Check if workflow is triggered by a tag + if: !startsWith(github.ref, 'refs/tags/') + run: echo "Not triggered by tag. Cancel workflow." && gh run cancel ${{ github.run_id }} - name: pull build container run: podman pull "${{ inputs.build_container }}:amd64" - name: fetch dependencies