Skip to content

Commit c37fa47

Browse files
authored
Use major version ref of editorconfig-checker/action-editorconfig-checker action
The editorconfig-checker/action-editorconfig-checker action is used in the "Check General Formatting" GitHub Actions workflow as a convenient way to install the editorconfig-checker tool. A major version ref is provided by the maintainers of that repository. It will always point to the latest release of the 2.x major version series. Use of the major version ref will cause the workflow to use a stable version of the action, while also benefiting from ongoing development to the action up until such time as a new major release of an action is made. At that time we would need to evaluate whether any changes to the workflow are required by the breaking change that triggered the major release before manually updating the major ref (e.g., `uses: editorconfig-checker/action-editorconfig-checker@v2` -> `uses: editorconfig-checker/action-editorconfig-checker@v3`). I think this major version ref approach to action dependency management strikes the right balance between stability and maintainability for this type of workflow.
1 parent cf1070d commit c37fa47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check-general-formatting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Install editorconfig-checker
22-
uses: editorconfig-checker/action-editorconfig-checker@v2.0.0
22+
uses: editorconfig-checker/action-editorconfig-checker@v2
2323

2424
- name: Check formatting
2525
run: editorconfig-checker

0 commit comments

Comments
 (0)