Skip to content

Commit

Permalink
Updated Workflow structure
Browse files Browse the repository at this point in the history
Signed-off-by: dlaw4608 <dlawton@redhat.com>
  • Loading branch information
dlaw4608 committed Aug 15, 2024
1 parent ff1c02c commit 386ebf0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-images-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@ jobs:
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'forked_image_approved') }}
name: Calls build-images-base workflow
uses: ./.github/workflows/build-images-base.yaml
secrets: inherit
with:
kuadrantOperatorVersion: ${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.number }}
kuadrantOperatorTag: ${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.number }}
steps:
- name: Run build-images-base workflow
uses: ./.github/workflows/build-images-base.yaml
with:
kuadrantOperatorVersion: ${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.number }}
kuadrantOperatorTag: ${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.number }}
secrets: inherit

remove-label:
runs-on: ubuntu-latest
needs: workflow-build
steps:
- name: Remove forked_image_approved label after workflow is triggered
- uses: actions-ecosystem/action-remove-labels@v1
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: forked_image_approved
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 386ebf0

Please sign in to comment.