-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix artifacts names for CalculateArtifactNames and DownloadProjectDep…
…endencies (#756) _**Issue 1**_: _CalculateArtifactNames_ uses only `github.ref_name` as branch name when constructing artifacts names. However, in the case of PR build, the value is the merge branch, e.g., "123/merge". Solution: _**Solution**_: Remove the _branch_ input from _CalculateArtifactNames_ action and let it determine the proper branch on the fly, based on `$env:GITHUB_HEAD_REF` ([doc](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables)). _**Issue 2**_: _DownloadProjectDependencies_ uses the wrong branches as head and target branches when running from a PR Build. Solution: _**Solution**_: Utilize `$env:GITHUB_HEAD_REF` and `GITHUB_BASE_REF` ([doc](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables)).
- Loading branch information
Showing
8 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters