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 85ba963
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .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 Down Expand Up @@ -71,7 +75,7 @@ jobs:
GITHUB_REF_NAME: ${{ github.ref_name }}
run: |
version=""
[ "$GITHUB_REF_TYPE" == "tag" ] && version=${GITHUB_REF_NAME#*/}
[ "$GITHUB_REF_TYPE" == "tag" ] && version=${GITHUB_REF_NAME#*/} || gh run cancel ${{ github.run_id }}
pkg="$(podman run \
--rm \
--mount="type=bind,src=$PWD/${GITHUB_ACTION_PATH}/container/bin,dst=/usr/local/sbin,ro" \
Expand Down

0 comments on commit 85ba963

Please sign in to comment.