Skip to content

Commit c64211a

Browse files
Merge pull request #1857 from alphagov/theseanything/use-reusable-actionlint-workflow
Use reusable actionlint workflow
2 parents e1475c6 + 62c6c36 commit c64211a

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

.github/workflows/lint_workflows.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,7 @@ on:
66
paths:
77
- '.github/workflows/*.yml'
88
- '.github/workflows/*.yaml'
9-
permissions:
10-
contents: read
9+
1110
jobs:
12-
actionlint:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16-
- name: Download actionlint
17-
id: get_actionlint
18-
run: |
19-
curl -L "https://github.com/rhysd/actionlint/releases/download/v1.7.7/actionlint_1.7.7_linux_amd64.tar.gz" | tar -xvz actionlint
20-
chmod +x actionlint
21-
sudo mv actionlint /usr/local/bin/actionlint
22-
shell: bash
23-
- name: Check workflow files
24-
run: actionlint -color
25-
shell: bash
11+
lint-workflows:
12+
uses: alphagov/forms-deploy/.github/workflows/reusable-lint-workflows.yml@main

0 commit comments

Comments
 (0)