Skip to content

Commit

Permalink
Use latest tag on main, otherwise Git tag (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarsti authored Jul 3, 2024
1 parent af309d7 commit a947e77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
- uses: actions/checkout@v3

- name: GitHub Tag Name example
env:
TAG: "${{ github.ref_name == 'main' && 'latest' || github.ref_name }}"
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
echo "Tag name: $TAG"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down

0 comments on commit a947e77

Please sign in to comment.