Skip to content

Commit

Permalink
Merge pull request #379 from perftool-incubator/fix-push-tag
Browse files Browse the repository at this point in the history
Fix push tag
  • Loading branch information
rafaelfolco authored Aug 7, 2024
2 parents e7fcd95 + ad52b97 commit 250280d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/crucible-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ jobs:
cd crucible
echo "Tags:"
git ls-remote --tags origin
if [ "${{ inputs.action }}" == "push" }} ]; then
git tag $TAG
if [ "${{ inputs.action }}" == "push" ]; then
ARGS=""
if [ "${{ inputs.force_push }}" == "true" ]; then
git push origin $TAG --force
else
git push origin $TAG
fi
ARGS="--force"
fi
git tag $TAG $ARGS
git push origin $TAG $ARGS
elif [ "${{ inputs.action }}" == "delete" ]; then
git push --delete origin $TAG
fi
Expand Down Expand Up @@ -188,12 +188,12 @@ jobs:
echo "Tags:"
git ls-remote --tags origin
if [ "${{ inputs.action }}" == "push" ]; then
git tag $TAG
ARGS=""
if [ "${{ inputs.force_push }}" == "true" ]; then
git push origin $TAG --force
else
git push origin $TAG
fi
ARGS="--force"
fi
git tag $TAG $ARGS
git push origin $TAG $ARGS
elif [ "${{ inputs.action }}" == "delete" ]; then
git push --delete origin $TAG
fi
Expand Down

0 comments on commit 250280d

Please sign in to comment.