Skip to content

Commit f9b4930

Browse files
authored
chore(pre-commit): add actionlint pre-commit-config (#1018)
1 parent 5a6cbcd commit f9b4930

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/actions/doc_preview/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
name: Preview or clean up docs built from PRs
5+
name: Docs in PRs
6+
description: Preview or clean up docs built from PRs
67

78
# A re-implementation based on the logic of https://github.com/rossjrw/pr-preview-action/blob/41a957c44a456a34718e9bcf825363194db5e6d5/README.md, due to limitations illustrated in NVIDIA/cuda-python#380.
89

910
inputs:
1011
source-folder:
1112
required: true
1213
type: string
14+
description: "Source code directory"
1315
pr-number:
1416
required: true
1517
type: string
18+
description: "Pull request number"
1619

1720
runs:
1821
using: composite

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
name: "CI: Release"
66

7-
description: Manually-triggered release workflow. Creates a release draft if one doesn't exist for the given tag, or uses existing draft.
7+
# Manually-triggered release workflow. Creates a release draft if one doesn't exist for the given tag, or uses existing draft.
88

99
on:
1010
workflow_dispatch:

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,10 @@ repos:
8080
files: ^cuda_pathfinder/cuda/.*\.py$ # Exclude tests directory
8181
args: [--config-file=cuda_pathfinder/pyproject.toml]
8282

83+
- repo: https://github.com/rhysd/actionlint
84+
rev: "03d0035246f3e81f36aed592ffb4bebf33a03106" # frozen: v1.7.7
85+
hooks:
86+
- id: actionlint
87+
8388
default_language_version:
8489
python: python3

0 commit comments

Comments
 (0)