github.event_path cannot be passed through env var
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 1.4k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 24
Description
Describe the bug
When passing ${{ github.event_path }} through as an environment variable, it ends up getting blanked out when trying to use the environment variable. The environment variable approach was previously working on v2.273.0, but appears to have broke in v2.273.1.
To Reproduce
Use the following workflow below.
name: event_path (manual trigger)
on:
workflow_dispatch:
jobs:
test:
runs-on: 'ubuntu-latest'
steps:
# - name: Printing through context works
# run: |
# echo ${{ github.event_path }}
- name: Printing through env var does not
run: |
echo $EVENT_PATH
env:
EVENT_PATH: ${{ github.event_path }}
Expected behavior
The value of ${{ github.event_path }} should be accessible as an environment variable.
Runner Version and Platform
Version of your runner? v2.273.1
OS of the machine running the runner? ubuntu-latest
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided workflow on ubuntu-latest with runner v2.273.1 and compare its environment-variable behavior with v2.273.0. The issue is done when github.event_path remains available through EVENT_PATH as shown in the reproduction, with the direct context behavior still working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, github-actions, ubuntu
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100