-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
github-action: Add AsciiDoc freeze warning #208534
Changes from 2 commits
8c45629
328b3b5
6225132
8d03bed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,20 @@ | ||||||||||
--- | ||||||||||
name: Comment on PR for .asciidoc changes | ||||||||||
|
||||||||||
on: | ||||||||||
pull_request: | ||||||||||
types: | ||||||||||
- synchronize | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This may end up leaving quite a few duplicate comments. I'm assuming it's to catch already open pull requests, but wanted to make a note. |
||||||||||
- opened | ||||||||||
- reopened | ||||||||||
branches: | ||||||||||
- main | ||||||||||
- master | ||||||||||
- "9.0" | ||||||||||
Comment on lines
+12
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will 9.0 be created today? |
||||||||||
|
||||||||||
jobs: | ||||||||||
comment-on-asciidoc-change: | ||||||||||
permissions: | ||||||||||
contents: read | ||||||||||
pull-requests: write | ||||||||||
uses: elastic/docs-builder/.github/workflows/comment-on-asciidoc-changes.yml@main |
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.
Did we consider using paths? The checkout is taking ~5 minutes currently
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#running-your-pull_request-workflow-based-on-files-changed-in-a-pull-request
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 the suggestion.
I changed the implementation to use an existing action which does not depend on
fetch-depth: 0
.Hence, I think, the checkout time should decrease.