Skip to content

Commit

Permalink
update actionlint download process
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmohona committed Jan 18, 2024
1 parent d136194 commit cabc822
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/validate-workflow-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Install actionlint
run: |
curl -sLO https://github.com/rhysd/actionlint/releases/download/v1.6.3/actionlint_1.6.3_linux_amd64.tar.gz
tar xzf actionlint_1.6.3_linux_amd64.tar.gz
chmod +x actionlint
sudo mv actionlint /usr/local/bin/
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash

- name: Run actionlint
run: actionlint

- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash

0 comments on commit cabc822

Please sign in to comment.