Skip to content

Commit 5460f12

Browse files
Fix [Ignore label] test: write fake event to unique path and pass GITHUB_EVENT_PATH explicitly
1 parent 02c8431 commit 5460f12

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/Action-Test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,15 @@ jobs:
336336
)
337337
}
338338
} | ConvertTo-Json -Depth 5
339-
$event | Set-Content -Path "$env:RUNNER_TEMP/event.json"
340-
"GITHUB_EVENT_PATH=$env:RUNNER_TEMP/event.json" | Out-File -FilePath $env:GITHUB_ENV -Append
339+
$event | Set-Content -Path "$env:RUNNER_TEMP/fake-event.json"
340+
"GITHUB_EVENT_PATH=$env:RUNNER_TEMP/fake-event.json" | Out-File -FilePath $env:GITHUB_ENV -Append
341341
342342
- name: Resolve-PSModuleVersion
343343
id: resolve
344344
uses: ./
345345
env:
346346
GH_TOKEN: ${{ github.token }}
347+
GITHUB_EVENT_PATH: ${{ runner.temp }}/fake-event.json
347348
with:
348349
Settings: |
349350
{

0 commit comments

Comments
 (0)