Przeglądaj źródła

ci: delete master branch from auto-sync

Zaiming Shi 4 lat temu
rodzic
commit
2d1aeb655c
1 zmienionych plików z 1 dodań i 5 usunięć
  1. 1 5
      .github/workflows/git_sync.yaml

+ 1 - 5
.github/workflows/git_sync.yaml

@@ -24,11 +24,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"
-          fi
+          EE_REF="${GITHUB_REF}-enterprise"
           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 }}" \