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
Prevent doc-link
from running on unrelated status update events.
#1410
Conversation
It should look like this once this PR is merged on the master branch: |
doc-link
from running on unrelated status update events.doc-link
from running on unrelated status update events
The current condition is wrong. I'll fix it. |
@@ -5,6 +5,7 @@ on: status | |||
jobs: | |||
doc-link: | |||
runs-on: ubuntu-latest | |||
if: "github.event.context == 'ci/circleci: document'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrapped the condition (contains :
) with ""
to prevent a syntax error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR as always.
I confirmed that the context can be found in the log of CircleCI's webhook, and the change works in your repository as expected.
LGTM.
X-GitHub-Event: status
...
"context": "ci/circleci: document"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks as always.
doc-link
from running on unrelated status update eventsdoc-link
from running on unrelated status update events.
Motivation
Prevnet
doc-link
from running on unrelated status update events to save GitHub Actions usage.Description of the changes
Add an
if
condition to preventdoc-link
from running on unrelated events.