Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
debdutdeb committed Dec 6, 2024
1 parent 5357b91 commit f24e90c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
- shell: bash
id: _id
run: |
tag=
if [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
tag="${{ inputs.tag }}"
# workflow_dispatch on public-releases also causing workflow_dispatch on this workflow_call (bug?)
if [[ -z "$tag" ]]; then
tag="$(awk -F: '/^version:/ {print $2}' snap/snapcraft.yaml | tr -d '[:space:]')"
else
tag="${{inputs.tag}}"
Expand Down

0 comments on commit f24e90c

Please sign in to comment.