We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26f3c8d commit df47363Copy full SHA for df47363
1 file changed
.github/workflows/__call-common-lint.yml
@@ -17,6 +17,9 @@ on:
17
- reopened
18
workflow_call:
19
inputs:
20
+ actionlint_config:
21
+ required: false
22
+ type: string
23
runner:
24
required: false
25
type: string
@@ -113,10 +116,15 @@ jobs:
113
116
- name: Install actionlint
114
117
id: get_actionlint
115
118
shell: bash
119
+ env:
120
+ ACTIONLINT_CONFIG: ${{ inputs.actionlint_config }}
121
run: |
122
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
123
- if [ ! -f ".github/actionlint.yml" ]; then
124
+ if [ -n "${ACTIONLINT_CONFIG}" ]; then
125
+ mkdir -p .github
126
+ printf "%s\n" "${ACTIONLINT_CONFIG}" > .github/actionlint.yml
127
+ elif [ ! -f ".github/actionlint.yml" ]; then
128
curl \
129
-fsSL \
130
--retry 3 \
0 commit comments