-
Notifications
You must be signed in to change notification settings - Fork 562
.github/workflows: Avoid running CI on markdown-only pull requests #2500
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
Closed
timflannagan
wants to merge
2
commits into
operator-framework:master
from
timflannagan:ci/dynamically-ignore-filter
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
name: build | ||
on: | ||
push: | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
paths_ignore: '["**/*.md"]' | ||
cancel_others: 'true' | ||
concurrent_skipping: 'outdated_runs' | ||
skip_after_successful_duplicate: 'true' | ||
image: | ||
runs-on: ubuntu-latest | ||
needs: skip_check | ||
if: ${{ needs.skip_check.outputs.should_skip != 'true' }} | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,23 @@ on: | |
branches: | ||
- master | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
paths_ignore: '["**/*.md"]' | ||
cancel_others: 'true' | ||
concurrent_skipping: 'outdated_runs' | ||
skip_after_successful_duplicate: 'true' | ||
e2e-tests: | ||
runs-on: ubuntu-latest | ||
needs: skip_check | ||
if: ${{ needs.skip_check.outputs.should_skip != 'true' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
name: run-olm-kind | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
schedule: | ||
- cron: '0 0 * * *' # daily to pick up releases | ||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
paths_ignore: '["**/*.md"]' | ||
cancel_others: 'true' | ||
concurrent_skipping: 'outdated_runs' | ||
skip_after_successful_duplicate: 'true' | ||
e2e-kind: | ||
runs-on: ubuntu-latest | ||
needs: skip_check | ||
if: ${{ needs.skip_check.outputs.should_skip != 'true' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
name: run-olm-minikube | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
schedule: | ||
- cron: '0 0 * * *' # daily to pick up releases | ||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
paths_ignore: '["**/*.md"]' | ||
cancel_others: 'true' | ||
concurrent_skipping: 'outdated_runs' | ||
skip_after_successful_duplicate: 'true' | ||
e2e-minikube: | ||
runs-on: ubuntu-latest | ||
needs: skip_check | ||
if: ${{ needs.skip_check.outputs.should_skip != 'true' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,23 @@ on: | |
branches: | ||
- '**' | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
paths_ignore: '["**/*.md"]' | ||
cancel_others: 'true' | ||
concurrent_skipping: 'outdated_runs' | ||
skip_after_successful_duplicate: 'true' | ||
sanity: | ||
runs-on: ubuntu-latest | ||
needs: skip_check | ||
if: ${{ needs.skip_check.outputs.should_skip != 'true' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,23 @@ on: | |
branches: | ||
- master | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
paths_ignore: '["**/*.md"]' | ||
cancel_others: 'true' | ||
concurrent_skipping: 'outdated_runs' | ||
skip_after_successful_duplicate: 'true' | ||
unit: | ||
runs-on: ubuntu-latest | ||
needs: skip_check | ||
if: ${{ needs.skip_check.outputs.should_skip != 'true' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,23 @@ on: | |
branches: | ||
- master | ||
pull_request: | ||
paths-ignore: | ||
- '**/*.md' | ||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
paths_ignore: '["**/*.md"]' | ||
cancel_others: 'true' | ||
concurrent_skipping: 'outdated_runs' | ||
skip_after_successful_duplicate: 'true' | ||
verify: | ||
runs-on: ubuntu-latest | ||
needs: skip_check | ||
if: ${{ needs.skip_check.outputs.should_skip != 'true' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
There's alternative actions we can use but I wasn't a huge fan of their ignore filtering behaviors when playing around with them locally. Another viable alternative would be to perform this filtering ourselves through the REST API using the /pulls/<PR #>/files endpoint.
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.
There's likely a couple of more alternatives the more I think about: