瀏覽代碼

Set up Git configuration on Gradle Wrapper Workflow

Issue gh-13865
Marcus Da Coregio 1 年之前
父節點
當前提交
692c013430
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .github/workflows/gradle-wrapper-upgrade-execution.yml

+ 4 - 0
.github/workflows/gradle-wrapper-upgrade-execution.yml

@@ -10,6 +10,10 @@ jobs:
     name: Execution
     name: Execution
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
+      - name: Set up Git configuration
+        env:
+          TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        run: git config --global url."https://unused-username:${TOKEN}@github.com/".insteadOf "https://github.com/"
       - name: Checkout
       - name: Checkout
         uses: actions/checkout@v4
         uses: actions/checkout@v4
       - name: Set up JDK 17
       - name: Set up JDK 17