Skip to content
Discussion options

You must be logged in to vote

This is now available! I've added new properties to the job context:

Property Description
job.workflow_ref The full ref of the workflow file that defines the current job. For jobs in a reusable workflow, this refers to the reusable workflow file.
job.workflow_sha The commit SHA of the workflow file that defines the current job.
job.workflow_repository The owner/repo of the repository containing the workflow file.
job.workflow_file_path The file path of the workflow file, relative to the repository root.

Example — if org/app calls org/shared/.github/workflows/build.yml@refs/heads/main:

  • job.workflow_repositoryorg/shared
  • job.workflow_sha → the commit SHA in org/shared
  • git…

Replies: 12 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ossanna16
Comment options

@neilime
Comment options

@neilime
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jenseng
Comment options

Comment options

You must be logged in to vote
2 replies
@jenseng
Comment options

@salmanmkc
Comment options

Answer selected by salmanmkc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement An idea, feature request, or improvement to a GitHub feature Actions Build, test, and automate your deployment pipeline with world-class CI/CD
9 participants