Merge pull request #6233 from zmstone/ci-do-not-sync-master-branch

ci: do not sync master branch
This commit is contained in:
Zaiming (Stone) Shi 2021-11-19 13:46:11 +01:00 committed by GitHub
commit ef41361753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -3,7 +3,6 @@ name: Sync to enterprise
on: on:
push: push:
branches: branches:
- master
- main-v* - main-v*
jobs: jobs:
@ -23,11 +22,7 @@ jobs:
id: create_pull_request id: create_pull_request
run: | run: |
set -euo pipefail set -euo pipefail
if [ "$GITHUB_REF" = "refs/heads/master" ]; then
EE_REF="refs/heads/enterprise"
else
EE_REF="${GITHUB_REF}-enterprise" EE_REF="${GITHUB_REF}-enterprise"
fi
R=$(curl --silent --show-error \ R=$(curl --silent --show-error \
-H "Accept: application/vnd.github.v3+json" \ -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.CI_GIT_TOKEN }}" \ -H "Authorization: token ${{ secrets.CI_GIT_TOKEN }}" \