Skip to content

Commit

Permalink
Building package only if it's tagged.
Browse files Browse the repository at this point in the history
  • Loading branch information
alee-ntap committed Nov 27, 2023
1 parent 8df8887 commit 9d7f097
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ on:
message:
type: string
default: ""

env:
GH_TOKEN: ${{ github.token }}

jobs:
source:
name: source package
Expand All @@ -51,6 +55,12 @@ jobs:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
path: input
- name: check if HEAD contains tag
needs: test
if: github.ref_type !== 'tag'
run: |
echo "Commit is not tagged. Cancel the workflow!"
gh run cancel ${{ github.run_id }}
- name: pull build container
run: podman pull "${{ inputs.build_container }}:amd64"
- name: fetch dependencies
Expand Down

0 comments on commit 9d7f097

Please sign in to comment.