Skip to content
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

Update GitHub action for releases #272

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

stevedlawrence
Copy link
Member

Currently, the matrix configuration definitions and logic in the 'Release Info' step for which one of those configurations to use is far apart in the main.yml file. If the matrix configuration ever changes it can be difficult to also remember to update the 'Release Info' step, which can lead to failed releases.

To make this error less like, this adds a new 'is_release_job' matrix include that is set to false by default, but set to true for the one matrix configuration that should be used for building releases. Since these are near each other and all configured in the 'matrix' setting, it should hopefully be easier to remember to make updates if needed. Now matrix updates no longer require changes to the 'Release Info' step.

This also modifies the 'Release Info' step to remove the deprecated set-output command:

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Currently, the matrix configuration definitions and logic in the
'Release Info' step for which one of those configurations to use is far
apart in the main.yml file. If the matrix configuration ever changes it
can be difficult to also remember to update the 'Release Info' step,
which can lead to failed releases.

To make this error less like, this adds a new 'is_release_job' matrix
include that is set to false by default, but set to true for the one
matrix configuration that should be used for building releases. Since
these are near each other and all configured in the 'matrix' setting, it
should hopefully be easier to remember to make updates if needed. Now
matrix updates no longer require changes to the 'Release Info' step.

This also modifies the 'Release Info' step to remove the deprecated
set-output command:

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
@dburgener dburgener merged commit 0fd05c3 into SELinuxProject:main Oct 5, 2023
3 checks passed
@dburgener
Copy link
Member

Merged. Thanks for the PR!

@stevedlawrence stevedlawrence deleted the release-workflow branch October 5, 2023 13:49
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