Skip to content

Commit f399c81

Browse files
authored
Merge pull request #67 from alphagov/add-actionlint-to-all-repos
Add Actionlint Checks
2 parents e95ac4f + 1f890db commit f399c81

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/actionlint.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Lint GitHub Actions
2+
on:
3+
push:
4+
paths: ['.github/**']
5+
jobs:
6+
actionlint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
show-progress: false
12+
- uses: alphagov/govuk-infrastructure/.github/actions/actionlint@main

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
gem push "govuk_web_banners-${VERSION}.gem"
8484
fi
8585
86-
if ! git ls-remote --tags --exit-code origin v${VERSION}; then
87-
git tag v${VERSION}
86+
if ! git ls-remote --tags --exit-code origin v"${VERSION}"; then
87+
git tag v"${VERSION}"
8888
git push --tags
8989
fi

0 commit comments

Comments
 (0)