File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -344,7 +344,6 @@ jobs:
344344 uses : ./
345345 env :
346346 GH_TOKEN : ${{ github.token }}
347- GITHUB_EVENT_PATH : ${{ runner.temp }}/fake-event.json
348347 with :
349348 Settings : |
350349 {
@@ -360,6 +359,7 @@ jobs:
360359 }
361360 }
362361 }
362+ EventPath : ${{ runner.temp }}/fake-event.json
363363
364364 - name : Verify - Ignore label
365365 shell : pwsh
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ inputs:
3131 description : Allow prerelease versions of the GitHub module if available.
3232 required : false
3333 default : ' false'
34+ EventPath :
35+ description : Path to the GitHub event JSON file. Defaults to the standard GitHub event path. Override for testing.
36+ required : false
37+ default : ' '
3438
3539outputs :
3640 Version :
6872 PSMODULE_RESOLVE_PSMODULEVERSION_INPUT_Settings : ${{ inputs.Settings }}
6973 PSMODULE_RESOLVE_PSMODULEVERSION_INPUT_Name : ${{ inputs.Name }}
7074 PSMODULE_ACTION_PATH : ${{ github.action_path }}
75+ GITHUB_EVENT_PATH : ${{ inputs.EventPath || github.event_path }}
7176 run : |
7277 & "$env:PSMODULE_ACTION_PATH/scripts/main.ps1"
You can’t perform that action at this time.
0 commit comments