Skip to content

Commit

Permalink
Adding in logging to see why conditionals aren't working
Browse files Browse the repository at this point in the history
  • Loading branch information
BobJWalker committed Feb 13, 2024
1 parent 39fa529 commit 57fe32c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ jobs:
git stage 'k8s/overlays/${{ github.ref == 'refs/heads/main' && 'test' || 'dev' }}/kustomization.yaml'
git commit -am "Updating ${{ github.ref == 'refs/heads/main' && 'test' || 'dev' }} overlay file to ${{ steps.determine_version.outputs.semVer }}"
git push --set-upstream origin ${GITHUB_REF:11}
echo "The current branch is ${{ github.ref }}"
if [["${{ github.ref }}" != "refs/head/main"]]; then
echo "The current branch is not the main branch, updating the dev-argo tag"
git tag 'dev-argo' --force
git push origin 'dev-argo' --force
else
echo "The curent branch is the main branch, leaving the dev-argo tag alone"
fi

0 comments on commit 57fe32c

Please sign in to comment.