Skip to content

Commit

Permalink
feat: lint GitHub Actions workflows
Browse files Browse the repository at this point in the history
Works around <dependabot/dependabot-core#8362>
for now.
  • Loading branch information
l0b0 committed Nov 14, 2023
1 parent e614fbe commit 8228583
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ updates:
directory: "/"
schedule:
interval: daily
- package-ecosystem: "docker"
directory: "/.github/workflows"
schedule:
interval: daily
- package-ecosystem: npm
directory: "/"
schedule:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/actionlint.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Workaround for https://github.com/dependabot/dependabot-core/issues/8362.
# Once that is fixed, remove this file and replace the Docker build and run
# lines in `.github/workflows/main.yml` with a `uses: docker://rhysd/…` line.
FROM rhysd/actionlint:1.6.26@sha256:2362769b1d75056da70e7af1b12d9e52746f3a123b8f22a4322869e8f2cd45f2
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ jobs:
steps:
- uses: linz/action-typescript@v3

- name: Download actionlint
run: docker build --tag actionlint - < .github/workflows/actionlint.dockerfile

- name: Run actionlint to check workflow files
run: docker run --volume="${PWD}:/repo" --workdir=/repo actionlint -color

deploy-prod:
runs-on: ubuntu-latest
concurrency: deploy-prod-${{ github.ref }}
Expand Down

0 comments on commit 8228583

Please sign in to comment.