Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 🚨 actionlint

on:
push:
branches:
- long_lived/**
- main
- release/**
tags:
- "**"
pull_request:
branches:
- "**"

permissions:
contents: read

jobs:
actionlint:
uses: chia-network/actions/.github/workflows/reflow-actionlint.yml@main

actionlint-local:
uses: ./.github/workflows/reflow-actionlint.yml
with:
concurrency-name: local
36 changes: 36 additions & 0 deletions .github/workflows/reflow-actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: reflow-actionlint.yml

on:
workflow_call:
inputs:
concurrency-name:
default: ""
required: false
type: string

concurrency:
group: ${{ inputs.concurrency-name }}-${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow_ref, github.event.pull_request.number) || github.run_id }}
cancel-in-progress: true

defaults:
run:
shell: bash

permissions:
contents: read

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: actionlint
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
echo ==== shellcheck version
shellcheck --version
echo ==== actionlint version
./actionlint --version
echo ==== running actionlint
./actionlint -color -shellcheck shellcheck
2 changes: 1 addition & 1 deletion .github/workflows/super-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
VALIDATE_JSCPD: false
VALIDATE_PYTHON_PYLINT: false
VALIDATE_CHECKOV: false
VALIDATE_GITHUB_ACTIONS: false # Disabled because the linter is failing with errors about parameters not existing that actually do exist
VALIDATE_GITHUB_ACTIONS: false # handled in actionlint.yml
# Linting is done in test-label-conflict.yml for label-conflict action
FILTER_REGEX_EXCLUDE: label-conflict/.*
Loading