Skip to content

Commit aef43b9

Browse files
authored
ci: add support actionlint (#1215)
1 parent de1f083 commit aef43b9

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,10 @@ jobs:
3939
# F541 (https://docs.astral.sh/ruff/rules/f-string-missing-placeholders)
4040
- name: Check linting
4141
run: poetry run ruff check . --ignore E721 --ignore F541
42+
actionlint:
43+
name: Github Actions lint
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v5
47+
- name: Check workflow files
48+
uses: docker://rhysd/actionlint:latest

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
}
5757
]
5858
}' \
59-
${SLACK_WEBHOOK_NIGHTLY};
59+
"${SLACK_WEBHOOK_NIGHTLY}";
6060
env:
6161
SLACK_WEBHOOK_NIGHTLY: ${{ secrets.SLACK_WEBHOOK_NIGHTLY }}
6262
FAILED_PRODUCT: "${{ matrix.products }}"

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install dependencies and library
2525
run: poetry install
2626
- name: Set package version
27-
run: poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3)
27+
run: poetry version "$(echo "${{ github.ref }}" | cut -d "/" -f 3)"
2828
- name: Build package
2929
run: poetry build
3030
- name: Publish package
@@ -56,16 +56,16 @@ jobs:
5656
python-version: "3.10"
5757
cache: "poetry"
5858
- name: Set local scaleway-core version
59-
run: poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3)
59+
run: poetry version "$(echo "${{ github.ref }}" | cut -d "/" -f 3)"
6060
working-directory: scaleway-core
6161
- name: Set scaleway-core version in the package
62-
run: poetry add scaleway-core@$(echo "${{ github.ref }}" | cut -d "/" -f 3)
62+
run: poetry add scaleway-core@"$(echo "${{ github.ref }}" | cut -d "/" -f 3)"
6363
- name: Update lock file
6464
run: poetry lock
6565
- name: Install dependencies and library
6666
run: poetry install
6767
- name: Set package version
68-
run: poetry version $(echo "${{ github.ref }}" | cut -d "/" -f 3)
68+
run: poetry version "$(echo "${{ github.ref }}" | cut -d "/" -f 3)"
6969
- name: Build package
7070
run: poetry build
7171
- name: Publish package

.github/workflows/typing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install dependencies and library
3636
run: poetry install
3737
- name: Check typing
38-
run: poetry run mypy --install-types --non-interactive --strict --no-warn-unused-ignores $(echo "${{ matrix.lib }}" | tr "-" "_")
38+
run: poetry run mypy --install-types --non-interactive --strict --no-warn-unused-ignores "$(echo "${{ matrix.lib }}" | tr "-" "_")"
3939

4040
ty:
4141
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)