Skip to content

Commit 0c84958

Browse files
Merge pull request #1961 from stuggi/remove-tj-actions2
Remove tj-actions/branch-names from upgrade catalog workflow
2 parents 51d623c + 29011b0 commit 0c84958

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/catalog-openstack-operator-upgrades.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ jobs:
3737
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3838
with:
3939
path: ./openstack-operator
40-
- name: Get branch name
41-
id: branch-name
42-
uses: tj-actions/branch-names@5250492686b253f06fa55861556d1027b067aeb5 # v9
4340
- name: Set latest tag for non main branch
44-
if: "${{ steps.branch-name.outputs.current_branch != 'main' }}"
41+
if: "${{ github.ref_name != 'main' }}"
4542
run: |
46-
echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV
43+
echo "latesttag=${{ github.ref_name }}-latest" >> $GITHUB_ENV
4744
- name: Install opm
4845
uses: redhat-actions/openshift-tools-installer@144527c7d98999f2652264c048c7a9bd103f8a82 # v1
4946
with:

0 commit comments

Comments
 (0)