Skip to content

Commit

Permalink
Lint GitHub Action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Aug 11, 2023
1 parent a192fe8 commit 6362337
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/announce-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/prepare-for-a-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**'
paths-ignore:
- .release-notes/next-release.md
- .release-notes/\d+.\d+.\d+.md
- .release-notes/[0-9]+.[0-9]+.[0-9]+.md

jobs:
release-notes:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- \d+.\d+.\d+
- '[0-9]+.[0-9]+.[0-9]+'

concurrency: release

Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Docker login
run: "docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD"
run: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit 6362337

Please sign in to comment.