Skip to content

Commit 75ec58f

Browse files
authored
Use major version ref of carlosperate/download-file-action (#33)
The `carlosperate/download-file-action` action is used in the GitHub Actions workflows as a convenient way to download external resources. A major version ref has been added to that repository. It will always point to the latest release of the "1" major version series. This means it is no longer necessary to do a full pin of the action version in use as before. 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: `carlosperate/download-file-action@v2`). I think this approach strikes the right balance between stability and maintainability for these workflows.
1 parent 9fbb6d0 commit 75ec58f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/validate-action_yml.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
# See: https://github.com/carlosperate/download-file-action/blob/master/README.md
3434
- name: Download JSON schema for action.yml
35-
uses: carlosperate/download-file-action@v1.0.3
35+
uses: carlosperate/download-file-action@v1
3636
with:
3737
# See: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/github-action.json
3838
file-url: https://json.schemastore.org/github-action

0 commit comments

Comments
 (0)