Skip to content

Use non-version specific reference URLs for tool version workflow variables #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2022
Merged

Use non-version specific reference URLs for tool version workflow variables #238

merged 1 commit into from
Jun 14, 2022

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jun 14, 2022

GitHub Actions actions are used by the workflows to set up development tools in the runner workspace.

In order to facilitate updates to new versions of these tools, we specify the tool version to be set up via environment variables at the top of the workflow.

Since this variable definition is separate from the step using the action, it might not be immediately apparent to the maintainer which version syntaxes are supported. For this reason, comments were added with the URL to the relevant section of the consuming action's documentation. Previously, these URLs were made to point to the version of the documentation that matched the version of the action in use by the workflow. Since we only use a major version ref, the expectation was that this would only need to be updated rarely. However, it turned out that the major version bump cycle of these actions is significantly shorter than expected. In addition, it is easy to forget to update the URLs because action version update PRs are provided by Dependabot, which obviously won't update the comments for us.

So it will be best to use a URL that points to the documentation at the tip of the default branch of the action repository. The likelihood of the documentation provided by this URL not matching the behavior of the release version of the action in use is likely less than it is for the inevitably outdated URLs resulting from the previous approach.

@per1234 per1234 added topic: documentation Related to documentation for the project type: enhancement Proposed improvement labels Jun 14, 2022
@per1234 per1234 requested a review from umbynos June 14, 2022 11:58
@per1234 per1234 self-assigned this Jun 14, 2022
…iables

GitHub Actions actions are used by the workflows to set up development tools in the runner workspace.

In order to facilitate updates to new versions of these tools, we specify the tool version to be set up via environment
variables at the top of the workflow.

Since this variable definition is separate from the step using the action, it might not be immediately apparent to the
maintainer which version syntaxes are supported. For this reason, comments were added with the URL to the relevant
section of the consuming action's documentation. Previously, these URLs were made to point to the version of the
documentation that matched the version of the action in use by the workflow. Since we only use a major version ref, the
expectation was that this would only need to be updated rarely. However, it turned out that the major version bump cycle
is significantly shorter than expected. In addition, it is easy to forget to update the URLs because action version
update PRs are provided by Dependabot, which obviously won't update the comments for us.

So it will be best to use a URL that points to the documentation at the tip of the default branch of the action
repository. The likelihood of the documentation provided by this URL not matching the behavior of the release version of
the action in use is likely less than it is for the inevitably outdated URLs resulting from the previous approach.
@per1234 per1234 merged commit da1eb9b into arduino:main Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: documentation Related to documentation for the project type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants