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

Only override VERSION and REVMARK for manual GitHub Actions builds #34

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

arichardson
Copy link
Contributor

For non-manual builds the "env" argument to the "Build Files" step will set VERSION to "v" and REVMARK to the empty string which results in the version of the PDF being incorrect. To avoid this problem use a conditional step that updates $GITHUB_ENV for workflow_dispatch builds instead of setting the variables unconditionally.

This PR also removes the Step prefix to all the comments since it does not add any explanatory value and makes it more difficult to update the workflow file.

See riscv/riscv-cheri#72

For non-manual builds the "env" argument to the "Build Files" step will
set VERSION to "v" and REVMARK to the empty string which results in
the version of the PDF being incorrect. To avoid this problem use a
conditional step that updates $GITHUB_ENV for `workflow_dispatch` builds
instead of setting the variables unconditionally.

This PR also removes the Step <N> prefix to all the comments since it
does not add any explanatory value and makes it more difficult to update
the workflow file.

See riscv/riscv-cheri#72

Signed-off-by: Alex Richardson <[email protected]>
@wmat wmat merged commit d3f1da8 into riscv:main Feb 6, 2024
2 checks passed
@arichardson arichardson deleted the avoid-empty-revmark branch February 6, 2024 23:23
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