Merge pull request #16086 from YangJiao0817/fix-ci-master2main

modify build-package branch master to main
This commit is contained in:
Yang Jiao 2021-12-07 15:51:21 +08:00 committed by GitHub
commit a234fee730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ env:
on: on:
push: push:
branches: branches:
- master - main
- release-* - release-*
tags: tags:
- v* - v*
@ -70,7 +70,7 @@ jobs:
target_release_version=$(cat ./VERSION) target_release_version=$(cat ./VERSION)
Harbor_Package_Version=$target_release_version-'build.'$GITHUB_RUN_NUMBER Harbor_Package_Version=$target_release_version-'build.'$GITHUB_RUN_NUMBER
if [[ $target_branch == "master" ]]; then if [[ $target_branch == "main" ]]; then
Harbor_Assets_Version=$Harbor_Package_Version Harbor_Assets_Version=$Harbor_Package_Version
harbor_target_bucket=$harbor_builds_bucket harbor_target_bucket=$harbor_builds_bucket
else else