We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af309d7 commit a947e77Copy full SHA for a947e77
.github/workflows/build.yaml
@@ -22,9 +22,10 @@ jobs:
22
- uses: actions/checkout@v3
23
24
- name: GitHub Tag Name example
25
+ env:
26
+ TAG: "${{ github.ref_name == 'main' && 'latest' || github.ref_name }}"
27
run: |
- echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
- echo "Tag name from github.ref_name: ${{ github.ref_name }}"
28
+ echo "Tag name: $TAG"
29
30
- name: Configure AWS Credentials
31
uses: aws-actions/configure-aws-credentials@v4
0 commit comments