Skip to content

Conversation

@seb5g
Copy link
Contributor

@seb5g seb5g commented May 5, 2025

GitHub Actions Version Updates

Copy link
Collaborator

@BenediktBurger BenediktBurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An action version resolves to the most recent compatible version. i.e. v4 to v4.2.3, if that is the most recent one.

steps:
- name: Set up Python ${{ inputs.python }}
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know, @v4 resolves always to the most recent minor / patch version, so it will use v4.2.2 now and later v4.2.3, once that is released.

So, no need to change it here (unless you want to pin that specific version).

uses: actions/checkout@v4.2.2
- name: Install dependencies
uses: actions/setup-python@v4
uses: actions/setup-python@v5.6.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: actions/setup-python@v5.6.0
uses: actions/setup-python@v5

Or is there a specific reason for that minor version?

@seb5g
Copy link
Contributor Author

seb5g commented May 20, 2025

@malik-irain could you comment?

@malik-irain
Copy link
Contributor

@BenediktBurger
It's an action that automatically triggers a PR bumping version numbers in the other github actions. Using it allows to have automatic updates of the actions, while still needing to manually validate them.

We can see if tests still pass, etc, and when a new major version of an actions releases, it will also be updated.

@BenediktBurger
Copy link
Collaborator

I see.
It is good to have that suggestion of new action versions.

@malik-irain malik-irain closed this Sep 5, 2025
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.

4 participants