-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci-release] Improve release workflow for manual runs (#4818)
## Which problem is this PR solving? - Resolves #4814 - Resolves #4817 ## Description of the changes - Set BRANCH=s/main/main_from_fork/ when running on pull requests. This should solve the problem with CI failing when people submit a PR from a main branch in their fork, because our CI scripts think it means docker images should be uploaded and fail on the lack of credentials. Now they will skip the uploads. - Move cleanup of android toolchain to the top of the workflow - Replace the use of `.github/actions/setup-branch` with custom logic to set BRANCH which is always based on the recent semver tag. `setup-branch` will still work for non-release workflows. - Remove unnecessary success checks in the steps (job fails when any step fails) - Use `env.BRANCH` as release name in `upload-release-action` action, instead of `github.ref` - Manually upload SBOM to the correct release (to solve #4817) ## How was this change tested? - Will have to run ci-release manually after merge --------- Signed-off-by: Yuri Shkuro <[email protected]>
- Loading branch information
1 parent
9d512a1
commit a6d091d
Showing
2 changed files
with
35 additions
and
21 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