Skip to content

Commit

Permalink
chore(ci): update and refactor the workflow linter pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomiguelino committed Feb 7, 2025
1 parent ca07fcb commit ab774f9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/lint-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,23 @@ on:
jobs:
actionlint:
runs-on: ubuntu-latest
name: Run Linter
strategy:
matrix:
actionlint-version: ['1.7.7']
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4

- name: Install actionlint
- name: Download actionlint
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
ACTIONLINT_FILE="actionlint_${{ matrix.actionlint-version }}_linux_amd64.tar.gz"
ACTIONLINT_URL="https://github.com/rhysd/actionlint/releases/download"
ACTIONLINT_DOWNLOAD_URL="$ACTIONLINT_URL/v${{ matrix.actionlint-version }}/$ACTIONLINT_FILE"
curl -L -o actionlint.tar.gz "$ACTIONLINT_DOWNLOAD_URL"
tar xzf actionlint.tar.gz
shell: bash

- name: Run actionlint
run: ./actionlint -color
shell: bash
shell: bash

0 comments on commit ab774f9

Please sign in to comment.