-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
chore(ci): create a pipeline for linting YAML workflow files #2183
Open
nicomiguelino
wants to merge
20
commits into
Screenly:master
Choose a base branch
from
nicomiguelino:create-workflow-linter-pipeline
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
87609b0
chore(ci): create a pipeline for linting YAML workflow files
nicomiguelino a1ff303
chore(ci): resolve SC2086
nicomiguelino d28611a
chore(ci): resolve some more workflow linter comments
nicomiguelino 5cd6953
chore(ci): deploy some more workflow linter issues
nicomiguelino 032b1bf
chore(ci): fix some more workflow linter issues
nicomiguelino 8362ad4
chore(ci): fix some more workflow linter issues
nicomiguelino fdd5797
chore(ci): fix some more workflow linter issues
nicomiguelino a2fe7f9
chore(ci): fix Python linter workflow
nicomiguelino 80c03d9
chore(ci): fix Python linter workflow
nicomiguelino 7f4aeb7
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino b52b181
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino e25d687
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino 4742616
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino d839d8f
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino ff522ef
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino 7dbd247
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino 9d973d0
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino 6435421
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino 27da407
chore: revert trivial changes
nicomiguelino 4a48846
Merge branch 'master' into create-workflow-linter-pipeline
nicomiguelino 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 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -49,7 +49,7 @@ jobs: | |
python bin/build-pi-imager-json.py > _site/rpi-imager.json | ||
|
||
# Make sure it's valid | ||
cat _site/rpi-imager.json | jq | ||
jq . < _site/rpi-imager.json | ||
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. Double-check if it still works. |
||
|
||
# Copy in static files. This is to be migrated to Hugo later. | ||
cp -rf assets _site/ | ||
|
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Lint GitHub Workflows | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- '**/*.yml' | ||
- '**/*.yaml' | ||
- '.github/workflows/lint-workflows.yml' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '**/*.yml' | ||
- '**/*.yaml' | ||
- '.github/workflows/lint-workflows.yml' | ||
|
||
jobs: | ||
actionlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install actionlint | ||
run: | | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | ||
shell: bash | ||
|
||
- name: Run actionlint | ||
run: ./actionlint -color | ||
shell: bash |
This file contains 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
This file contains 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
Oops, something went wrong.
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.
Double-check if this really works.