Skip to content

feat: add actionlint workflow#140

Merged
greenc-FNAL merged 1 commit intoFramework-R-D:mainfrom
greenc-FNAL:feature/actionlint-ci-workflow
Dec 2, 2025
Merged

feat: add actionlint workflow#140
greenc-FNAL merged 1 commit intoFramework-R-D:mainfrom
greenc-FNAL:feature/actionlint-ci-workflow

Conversation

@greenc-FNAL
Copy link
Contributor

Adds a new GitHub Actions workflow to run actionlint on all workflow and action files.

This change introduces:

  • A new workflow actionlint-check.yaml that runs on pull requests and workflow_dispatch.
  • An actionlint.yaml configuration file in the .github directory.

The new workflow follows the existing pattern of using a pre-check and detect-changes job to avoid running the linter when no relevant files have been modified.

Adds a new GitHub Actions workflow to run `actionlint` on all workflow and action files.

This change introduces:
- A new workflow `actionlint-check.yaml` that runs on pull requests and `workflow_dispatch`.
- An `actionlint.yaml` configuration file in the `.github` directory.

The new workflow follows the existing pattern of using a `pre-check` and `detect-changes` job to avoid running the linter when no relevant files have been modified.
@knoepfel
Copy link
Member

knoepfel commented Dec 2, 2025

What is the actionlint workflow for?

@greenc-FNAL
Copy link
Contributor Author

What is the actionlint workflow for?

Checks workflows and actions for various issues (the ones it reported in local runs are fixed in #139).

@greenc-FNAL
Copy link
Contributor Author

Local run was triggered with:

$ docker run --rm -v $(pwd):/repo --workdir /repo rhysd/actionlint:latest -color

from the repository top directory.

@greenc-FNAL
Copy link
Contributor Author

[greenc@scisoftbuild02] phlex (main) $ docker run --rm -v $(pwd):/repo --workdir /repo rhysd/actionlint:latest | grep -Ece '^\.github/'
13
[greenc@scisoftbuild02] phlex (main) $ git switch -
Switched to branch 'maintenance/actionlint-fixes'
Your branch is up to date with 'greenc-FNAL/maintenance/actionlint-fixes'.
[greenc@scisoftbuild02] phlex (maintenance/actionlint-fixes) $ docker run --rm -v $(pwd):/repo --workdir /repo rhysd/actionlint:latest | grep -Ece '^\.github/'
0

@greenc-FNAL greenc-FNAL merged commit 95fc681 into Framework-R-D:main Dec 2, 2025
33 checks passed
@greenc-FNAL greenc-FNAL deleted the feature/actionlint-ci-workflow branch January 5, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants