From 498323156ceb032d83542c999750ba53f97754a9 Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Thu, 10 Aug 2023 20:55:12 +0000 Subject: [PATCH] Lint GitHub Action workflows --- .github/workflows/announce-a-release.yml | 3 ++- .github/workflows/pr.yml | 11 +++++++++++ .github/workflows/prepare-for-a-release.yml | 3 ++- .github/workflows/release.yml | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/announce-a-release.yml b/.github/workflows/announce-a-release.yml index fb99e09..554f347 100644 --- a/.github/workflows/announce-a-release.yml +++ b/.github/workflows/announce-a-release.yml @@ -2,7 +2,8 @@ name: Announce a release on: push: - tags: announce-\d+.\d+.\d+ + tags: + - 'announce-[0-9]+.[0-9]+.[0-9]+' concurrency: announce-a-release diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3e8758c..75c43b8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -7,6 +7,17 @@ concurrency: cancel-in-progress: true jobs: + actionlint: + name: Lint GitHub Action Workflows + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Check workflow files + uses: docker://ponylang/shared-docker-ci-actionlint:20230810 + with: + args: -color + superlinter: name: Lint bash, docker, markdown, and yaml runs-on: ubuntu-latest diff --git a/.github/workflows/prepare-for-a-release.yml b/.github/workflows/prepare-for-a-release.yml index 7f12fb4..1154b85 100644 --- a/.github/workflows/prepare-for-a-release.yml +++ b/.github/workflows/prepare-for-a-release.yml @@ -2,7 +2,8 @@ name: Prepare for a release on: push: - tags: release-\d+.\d+.\d+ + tags: + - 'release-[0-9]+.[0-9]+.[0-9]+' concurrency: prepare-for-a-release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acabcec..33c5d25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - \d+.\d+.\d+ + - '[0-9]+.[0-9]+.[0-9]+' concurrency: release