From d02333c4e89253417c124c11e099f69076bc148e Mon Sep 17 00:00:00 2001 From: Dazhong Xia Date: Fri, 4 Oct 2024 14:31:33 -0400 Subject: [PATCH] Lint GHA workflows in pre-commit. (#3870) Co-authored-by: Zane Selvans --- .github/actionlint.yaml | 3 +++ .pre-commit-config.yaml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 .github/actionlint.yaml diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 0000000000..f1ab27ca21 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,3 @@ +self-hosted-runner: + labels: + - ubuntu-latest-4core diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2764407d92..9f1afea53e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,6 +58,12 @@ repos: - id: doc8 args: [--config, pyproject.toml] + # Check Github Actions + - repo: https://github.com/rhysd/actionlint + rev: v1.7.2 + hooks: + - id: actionlint + ##################################################################################### # Our own pre-commit hooks, which don't come from the pre-commit project #####################################################################################