Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions .github/workflows/build-test-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ jobs:
steps:
- uses: actions/checkout@v6

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v9

- name: Set latest tag for non main branch
if: "${{ steps.branch-name.outputs.current_branch != 'main' }}"
if: github.ref_name != 'main'
env:
BRANCH_NAME: ${{ github.ref_name }}
run: |
echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV
echo "latesttag=${BRANCH_NAME}-latest" >> $GITHUB_ENV

- name: Buildah Action
id: build-test-operator
Expand Down Expand Up @@ -106,14 +104,12 @@ jobs:
BASE_IMAGE: test-operator
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v9

- name: Set latest tag for non main branch
if: "${{ steps.branch-name.outputs.current_branch != 'main' }}"
if: github.ref_name != 'main'
env:
BRANCH_NAME: ${{ github.ref_name }}
run: |
echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV
echo "latesttag=${BRANCH_NAME}-latest" >> $GITHUB_ENV

- name: Build test-operator-bundle using buildah
id: build-test-operator-bundle
Expand Down Expand Up @@ -143,14 +139,12 @@ jobs:
- name: Checkout test-operator repository
uses: actions/checkout@v6

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v9

- name: Set latest tag for non main branch
if: "${{ steps.branch-name.outputs.current_branch != 'main' }}"
if: github.ref_name != 'main'
env:
BRANCH_NAME: ${{ github.ref_name }}
run: |
echo "latesttag=${{ steps.branch-name.outputs.current_branch }}-latest" >> $GITHUB_ENV
echo "latesttag=${BRANCH_NAME}-latest" >> $GITHUB_ENV

- name: Install opm
uses: redhat-actions/openshift-tools-installer@v1
Expand Down
Loading