-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce actionlint to lint GitHub Actions workflows (#15449)
- Loading branch information
1 parent
0f6bfdb
commit 8e02a42
Showing
4 changed files
with
41 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
self-hosted-runner: | ||
# Labels of self-hosted runner in array of strings. | ||
labels: | ||
- runs-on | ||
- runner=* | ||
- family=* | ||
- ram=* | ||
|
||
# Configuration variables in array of strings defined in your repository or | ||
# organization. `null` means disabling configuration variables check. | ||
# Empty array means no configuration variable is allowed. | ||
config-variables: null | ||
|
||
# Configuration for file paths. The keys are glob patterns to match to file | ||
# paths relative to the repository root. The values are the configurations for | ||
# the file paths. Note that the path separator is always '/'. | ||
# The following configurations are available. | ||
# | ||
# "ignore" is an array of regular expression patterns. Matched error messages | ||
# are ignored. This is similar to the "-ignore" command line option. | ||
paths: | ||
# .github/workflows/**/*.yml: | ||
# ignore: [] |
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,16 @@ | ||
name: Lint GitHub Actions workflows | ||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/*.yml' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/*.yml' | ||
|
||
jobs: | ||
actionlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check workflow files | ||
uses: docker://rhysd/actionlint:latest |
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