Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Event Context missing: github.event.repository.name #2370

Open
katherine-circularise opened this issue Jun 19, 2024 · 1 comment
Open
Labels
kind/bug Something isn't working

Comments

@katherine-circularise
Copy link

katherine-circularise commented Jun 19, 2024

Bug report info

not applicable

Command used with act

act <any workflow>

Describe issue

GitHub repository name is available via GITHUB_REPOSITORY env var, however I was using the event context (github.event.repository.name) as that already handles split by / for you. I've noticed that this is missing, which was leading to an empty string evaluation in my workflow.

If I have time, and manage to walk my way around the codebase, I'll send a PR adding this to the runner context. Creating the issue to keep track of htis.

Link to GitHub repository

No response

Workflow content

name: myWorkflow
on:
  push:
jobs:
  myJob:
    steps:
      - env:
          REPO_NAME: ${{ github.event.repository.name }}
        run: echo "Name: m${REPO_NAME}m"

Relevant log output

...
Name: mm
...

Additional information

No response

@katherine-circularise katherine-circularise added the kind/bug Something isn't working label Jun 19, 2024
@kittydoor
Copy link

Whoops, that's the work account. Looping my personal account into the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants