-
Notifications
You must be signed in to change notification settings - Fork 24
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
Proposal: do not run the action job if no Asana URL in the PR description. #14
Comments
+1 other issue I encounter is dependabot PR is failing because dependabot doesn't have access to secret |
Agree. My only issue with this is that according to Github docs:
What I'd like to see in the example is a way to avoid running when the Asana task URL is missing but also an option to fail the whole job in order to prevent the merge. |
Two small changes: * Add an explicit action version, as the `latest` tag is apparently not being updated to consistently point to the actual latest version. * Add a conditional so the job doesn't attempt to run (and fail) if there is no Asana link in the PR. Taken from this suggestion: Asana/create-app-attachment-github-action#14
Two small changes: * Add an explicit action version, as the `latest` tag is apparently not being updated to consistently point to the actual latest version. * Add a conditional so the job doesn't attempt to run (and fail) if there is no Asana link in the PR. Taken from this suggestion: Asana/create-app-attachment-github-action#14
I propose the action example to have a condition not to run the job if PR description does not contain Asana URL.
Adding a condition to job
if: contains(github.event.pull_request.body, 'https://app.asana.com')
This way the action does not run if there's no actual need and doesn't spend action runner minutes.
The text was updated successfully, but these errors were encountered: