Dax Raad 9 月之前
父節點
當前提交
b109ab7830
共有 3 個文件被更改,包括 6 次插入 和 4 次删除
  1. 5 0
      .github/actions/setup-git-committer/action.yml
  2. 1 0
      .github/workflows/generate.yml
  3. 0 4
      .github/workflows/publish.yml

+ 5 - 0
.github/actions/setup-git-committer/action.yml

@@ -30,3 +30,8 @@ runs:
         git config --global user.name "${slug}[bot]"
         git config --global user.email "${slug}[bot]@users.noreply.github.com"
       shell: bash
+
+    - name: Configure git remote
+      run: |
+        git remote set-url origin https://x-access-token:${{ steps.apptoken.outputs.token }}@github.com/${{ github.repository }}
+      shell: bash

+ 1 - 0
.github/workflows/generate.yml

@@ -25,6 +25,7 @@ jobs:
         uses: ./.github/actions/setup-bun
 
       - name: Setup git committer
+        id: committer
         uses: ./.github/actions/setup-git-committer
         with:
           opencode-app-id: ${{ vars.OPENCODE_APP_ID }}

+ 0 - 4
.github/workflows/publish.yml

@@ -242,10 +242,6 @@ jobs:
           opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
           opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
 
-      - name: Setup Git remote
-        run: |
-          git remote set-url origin https://x-access-token:${{ steps.committer.outputs.token }}@github.com/${{ github.repository }}
-
       - uses: actions/download-artifact@v4
         with:
           name: opencode-cli