Skip to content

Commit

Permalink
fixed deploy workshop configset
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Jul 3, 2024
1 parent 08a4c6b commit 2958bf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-configset-workshop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ jobs:
fetch-depth: 0
- name: Check that the tag exists in repo
id: tag_check
env:
TAG: ${{ github.event.inputs.tag }
run: |
if [ -z $TAG ]; then
echo "tag=`git rev-parse HEAD`" >> $GITHUB_OUTPUT
echo "No tag given. Set it to trunk head sha"
elif git rev-parse "refs/tags/$TAG" &> /dev/null; then
echo "tag=$TAG" >> $GITHUB_OUTPUT
echo "tag $TAG found"
elif git rev-parse "$TAG" &> /dev/null; then
SHA=`git rev-parse "$TAG"`
echo "$TAG corresponds to $SHA"
Expand Down

0 comments on commit 2958bf3

Please sign in to comment.