Skip to content

Can an action get the path of the workflow event #26794

Answered by mudlabs
mudlabs asked this question in Actions
Discussion options

You must be logged in to vote

@gilbertbw YES

const workflows = await octokit.request(
  "GET /repos/:owner/:repo/actions/workflows", 
  { owner, repo }
);
const workflow = workflows.data.workflows.find(
  workflow => workflow.name === process.env.GITHUB_WORKFLOW
);

Replies: 12 comments 1 reply

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
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
0 replies
Comment options

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

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants