Browse Source

fix(contributors): commit updates to base branch

Alvin Unreal 1 week ago
parent
commit
99544aa902
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .github/workflows/contributors.yml

+ 2 - 0
.github/workflows/contributors.yml

@@ -33,6 +33,7 @@ jobs:
         uses: actions/checkout@v4
         uses: actions/checkout@v4
         with:
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
           token: ${{ secrets.GITHUB_TOKEN }}
+          ref: ${{ github.event_name == 'workflow_dispatch' && github.event.repository.default_branch || github.event.pull_request.base.ref }}
 
 
       - name: Setup Bun
       - name: Setup Bun
         uses: oven-sh/setup-bun@v2
         uses: oven-sh/setup-bun@v2
@@ -53,3 +54,4 @@ jobs:
         with:
         with:
           commit_message: "docs: update contributors [skip ci]"
           commit_message: "docs: update contributors [skip ci]"
           file_pattern: ".all-contributorsrc README.md"
           file_pattern: ".all-contributorsrc README.md"
+          branch: ${{ github.event_name == 'workflow_dispatch' && github.event.repository.default_branch || github.event.pull_request.base.ref }}