Skip to content

Combining workflow triggers (specifically schedule + pull_request) #55768

Discussion options

You must be logged in to vote

my job requires accessing the PR information (since it's performing a comparison of the latest PR commit with its base commit, and then posting a comment on the PR thread). Will that even work in a deferred workflow?

It's definitely possible, depending on the permissions setting you give the workflow. What you won't have in a scheduled workflow is PR data in github.event, instead you'll have to retrieve the PR information from the API (authorized with the GITHUB_TOKEN, that's why the permissions are important).

Replies: 1 comment 3 replies

Comment options

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

@airtower-luna
Comment options

@BenHenning
Comment options

Answer selected by BenHenning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
2 participants