From 76457ef252e15d587723f22cadd3dc2e55cbc0ae Mon Sep 17 00:00:00 2001 From: Andrew Bays Date: Thu, 29 Jun 2023 13:00:35 +0000 Subject: [PATCH] Fix 'latest' tag used in GitHub automated builds --- .github/workflows/build-cinder-operator.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-cinder-operator.yaml b/.github/workflows/build-cinder-operator.yaml index ad687328..93ab93a2 100644 --- a/.github/workflows/build-cinder-operator.yaml +++ b/.github/workflows/build-cinder-operator.yaml @@ -35,8 +35,8 @@ jobs: id: branch-name uses: tj-actions/branch-names@v5 - - name: Set latest tag for non master branch - if: "${{ steps.branch-name.outputs.current_branch != 'master' }}" + - name: Set latest tag for non main branch + if: "${{ steps.branch-name.outputs.current_branch != 'main' }}" run: | echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV @@ -102,8 +102,8 @@ jobs: id: branch-name uses: tj-actions/branch-names@v5 - - name: Set latest tag for non master branch - if: "${{ steps.branch-name.outputs.current_branch != 'master' }}" + - name: Set latest tag for non main branch + if: "${{ steps.branch-name.outputs.current_branch != 'main' }}" run: | echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV @@ -139,8 +139,8 @@ jobs: id: branch-name uses: tj-actions/branch-names@v5 - - name: Set latest tag for non master branch - if: "${{ steps.branch-name.outputs.current_branch != 'master' }}" + - name: Set latest tag for non main branch + if: "${{ steps.branch-name.outputs.current_branch != 'main' }}" run: | echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV