Skip to content

Commit

Permalink
distinguish between workflow_call and workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Mart committed Aug 30, 2023
1 parent 47af3b6 commit b669ad6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/generate-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
required: true
workflow_call:
inputs:
externalCall:
description: "To distinguish workflow_call from workflow_dispatch"
type: boolean
required: false
default: true
endtag:
required: true
type: string
Expand Down Expand Up @@ -105,7 +110,7 @@ jobs:


auto-generate-release-notes:
if: github.event_name == 'workflow_call'
if: github.event.inputs.externalCall
name: Gen ${{ github.event.inputs.endtag }} notes
runs-on: ubuntu-latest
outputs:
Expand Down

0 comments on commit b669ad6

Please sign in to comment.