Skip to content

Commit

Permalink
Merge pull request #881 from jiridanek/jd_workflow_dispatch
Browse files Browse the repository at this point in the history
RHOAIENG-19036: chore(gha): fix workflow_dispatch invocation
  • Loading branch information
openshift-merge-bot[bot] authored Feb 4, 2025
2 parents 7fa29c8 + 55ed1c3 commit efeb9de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-notebooks-TEMPLATE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,19 @@ jobs:
# region Image build

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
- name: "push|schedule: make ${{ inputs.target }}"
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request

- name: "push|schedule|workflow_dispatch: make ${{ inputs.target }}"
run: |
make ${{ inputs.target }}
if: ${{ fromJson(inputs.github).event_name == 'push' || fromJson(inputs.github).event_name == 'schedule' }}
if: ${{ fromJson(inputs.github).event_name == 'push' ||
fromJson(inputs.github).event_name == 'schedule' ||
fromJson(inputs.github).event_name == 'workflow_dispatch' }}
env:
IMAGE_TAG: "${{ steps.calculated_vars.outputs.IMAGE_TAG }}"
CONTAINER_BUILD_CACHE_ARGS: "--cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
# dependent images were already built and pushed, so just let podman pull it
BUILD_DEPENDENT_IMAGES: "no"

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
- name: "pull_request: make ${{ inputs.target }}"
run: |
make ${{ inputs.target }}
Expand Down

0 comments on commit efeb9de

Please sign in to comment.