Skip to content

Commit

Permalink
🧪 Integrate actionlint
Browse files Browse the repository at this point in the history
This only ignores one false-positive linting rule.

Ref: rhysd/actionlint#384
  • Loading branch information
webknjaz committed Dec 15, 2023
1 parent 9467635 commit 3ca317b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,17 @@ jobs:
run: python -Im build --config-setting=pure-python=true
- name: Determine actual created filenames
id: dist-filenames-detection
run: >
echo -n sdist-filename= >> "${GITHUB_OUTPUT}"
basename $(ls -1 dist/${{ needs.pre-setup.outputs.sdist-name }})
>> "${GITHUB_OUTPUT}"
echo -n wheel-filename= >> "${GITHUB_OUTPUT}"
basename $(ls -1 dist/${{ needs.pre-setup.outputs.wheel-name }})
run: >-
{
echo -n sdist-filename=
;
basename "$(ls -1 dist/${{ needs.pre-setup.outputs.sdist-name }})"
;
echo -n wheel-filename=
;
basename "$(ls -1 dist/${{ needs.pre-setup.outputs.wheel-name }})"
;
}
>> "${GITHUB_OUTPUT}"
- name: Upload built artifacts for testing
uses: actions/upload-artifact@v3
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

ci:
autoupdate_schedule: quarterly
skip:
- actionlint-docker

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -185,4 +187,14 @@ repos:
- yarl/
pass_filenames: false

- repo: https://github.com/rhysd/actionlint.git
rev: v1.6.26
hooks:
- id: actionlint-docker
args:
- -ignore
- >- # https://github.com/rhysd/actionlint/issues/384
^type of expression at "float number value" must be number
but found type string$
...

0 comments on commit 3ca317b

Please sign in to comment.