actions / actions/runner

Expose workflow file name (or id) as environment variable?

Open
#853 6 comments 27 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Actions Feature enhancement
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

Currently, we have GITHUB_WORKFLOW which is either the workflow display name (name key) or its id (the key in yaml), however there are a few GitHub APIs that use the workflow id (or filename) e.g. get a workflow.

It would be great if these were exposed so that we can use these APIs more easily.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The entry point is the existing GITHUB_WORKFLOW environment variable; first trace how the runner derives and exposes it, then compare the needed workflow filename or ID with the cited GitHub Actions API requirements. Done means the requested workflow identifier is available as an environment variable and supports those API calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, github-actions
Domain
ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.