Prechádzať zdrojové kódy

Fix upgradeable patch in release branches (#4637)

(cherry picked from commit ef3e7771a7e2d9b30234a57f96ee7acf5dddb9ed)
Francisco 2 rokov pred
rodič
commit
fb2aec6946
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      .github/workflows/upgradeable.yml

+ 3 - 1
.github/workflows/upgradeable.yml

@@ -18,10 +18,12 @@ jobs:
           token: ${{ secrets.GH_TOKEN_UPGRADEABLE }}
       - name: Fetch current non-upgradeable branch
         run: |
-          git fetch "https://github.com/${{ github.repository }}.git" "$REF"
+          git fetch "$REMOTE" master # Fetch default branch first for patch to apply cleanly
+          git fetch "$REMOTE" "$REF"
           git checkout FETCH_HEAD
         env:
           REF: ${{ github.ref }}
+          REMOTE: https://github.com/${{ github.repository }}.git
       - name: Set up environment
         uses: ./.github/actions/setup
       - run: bash scripts/git-user-config.sh