Skip to content

Commit 040242b

Browse files
set branch and use different token
1 parent 71a3125 commit 040242b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/update-versions.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
with:
14+
ref: main
1315
- name: update-csharp-version
1416
run: curl -s "https://registry.hub.docker.com/v2/repositories/fernapi/fern-csharp-sdk/tags" | jq -r -j '[.results[] | select(.name != "latest")] | .[0].name' > fern/snippets/version-number-csharp.mdx
1517
- name: update-go-version
@@ -31,6 +33,7 @@ jobs:
3133
commit-message: "update versions from docker hub"
3234
title: "Update versions from docker hub"
3335
branch: update-versions
36+
base: main
3437
delete-branch: true
3538
- name: Enable Pull Request Automerge
3639
if: steps.cpr.outputs.pull-request-operation == 'created'
@@ -41,7 +44,7 @@ jobs:
4144
- name: Approving PR
4245
if: steps.cpr.outputs.pull-request-operation == 'created'
4346
env:
44-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
GH_TOKEN: ${{ secrets.PR_BOT_GH_PAT }}
4548
run: |
4649
echo "Approving PR"
4750
gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve

0 commit comments

Comments
 (0)