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 10, 2023
1 parent 83e76aa commit 568e79f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
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

lint-entrypoint-py:
name: Lint entrypoint.py
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-latest-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3
- name: Login to Docker Hub
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
12 changes: 6 additions & 6 deletions .github/workflows/update-release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3
- name: Login to Docker Hub
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 Expand Up @@ -78,16 +78,16 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3
- name: Login to Docker Hub
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 }}
- name: Build
run: make build version=${VERSION} config=public
run: make build version="${VERSION}" config=public
env:
VERSION: ${{ github.event.client_payload.version }}
- name: Push
run: make push version=${VERSION} config=public
run: make push version="${VERSION}" config=public
env:
VERSION: ${{ github.event.client_payload.version }}
- name: Send alert on failure
Expand Down Expand Up @@ -118,12 +118,12 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: make build version=${VERSION} config=private
run: make build version="${VERSION}" config=private
env:
VERSION: ${{ github.event.client_payload.version }}
MATERIAL_INSIDERS_ACCESS: ${{ secrets.MATERIAL_INSIDERS_ACCESS }}
- name: Push
run: make push version=${VERSION} config=private
run: make push version="${VERSION}" config=private
env:
VERSION: ${{ github.event.client_payload.version }}
- name: Send alert on failure
Expand Down

0 comments on commit 568e79f

Please sign in to comment.