Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a workaround for actions/checkout#290. As described in that issue, the goal of the checkout action is to always run on the provided build hash even if additional tags have been pushed. This means if a user pushed 2 tags at the same time, 2 build artifacts will result. One workaround proposed is to force pull tags. This workaround breaks the promise of GitHub builds – 2 tag pushes now can result in 2 independent builds but 1 build artifact total.
This PR adds detection for the
GITHUB_REF
environment variable. If we detect the variable and are in release mode, we will trust that the variable is correct. Otherwise, we fallback onto the already proven git describe method.You can see it in action here:
master: https://github.com/AustinShalit/OutlineViewer/runs/1616714453?check_suite_focus=true
"beta 5": https://github.com/AustinShalit/OutlineViewer/runs/1616715084?check_suite_focus=true
"beta 6": https://github.com/AustinShalit/OutlineViewer/runs/1616715071?check_suite_focus=true