Skip to content

Commit

Permalink
fix: workflow_dispatch trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
toms-place committed Jun 4, 2023
1 parent fb93fec commit 193c773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# main.yml
name: Build and Release operator
run-name: ${{ github.actor }} triggerd -> ${{ github.event.head_commit.message }}${{ github.event.pull_request.title }}
run-name: ${{ github.actor }} triggerd -> ${{ github.event_name }} ${{ github.event.head_commit.message }}${{ github.event.pull_request.title }}

on:
push:
Expand Down Expand Up @@ -28,7 +28,7 @@ env:

jobs:
prepare:
if: ${{ github.event_name == 'push' || github.event.pull_request.merged == true }}
if: ${{ github.event_name == 'push' || github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
outputs:
IMAGE_TAG_BASE: ${{ steps.SET_IMAGE_TAG_BASE.outputs.IMAGE_TAG_BASE }}
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:

buildah:
needs: prepare
if: ${{ github.event_name == 'push' || github.event.pull_request.merged == true }}
if: ${{ github.event_name == 'push' || github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
services:
docker:
Expand Down

0 comments on commit 193c773

Please sign in to comment.