Skip to content

Commit bdfe4bf

Browse files
committed
address feedback
1 parent 30d9596 commit bdfe4bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/regenerate_models.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
runs-on: ubuntu-latest
3030

3131
env:
32-
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
3332
DOCS_PR_NUMBER: ${{ inputs.docs_pr_number }}
3433

3534
steps:
@@ -46,6 +45,8 @@ jobs:
4645
4746
- name: Checkout apify-client-python
4847
uses: actions/checkout@v6
48+
with:
49+
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
4950

5051
# Download the pre-built OpenAPI spec artifact from the apify-docs workflow run.
5152
- name: Download OpenAPI spec artifact
@@ -88,6 +89,8 @@ jobs:
8889
- name: Create or update PR
8990
if: steps.changes.outputs.changed == 'true'
9091
id: pr
92+
env:
93+
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
9194
run: |
9295
BRANCH="update-models-docs-pr-${DOCS_PR_NUMBER}"
9396
DOCS_PR_URL="https://github.com/apify/apify-docs/pull/${DOCS_PR_NUMBER}"
@@ -133,6 +136,7 @@ jobs:
133136
- name: Comment on apify-docs PR
134137
if: steps.changes.outputs.changed == 'true'
135138
env:
139+
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
136140
PR_CREATED: ${{ steps.pr.outputs.created }}
137141
PR_URL: ${{ steps.pr.outputs.pr_url }}
138142
run: |
@@ -150,6 +154,8 @@ jobs:
150154
151155
- name: Comment on failure
152156
if: failure()
157+
env:
158+
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
153159
run: |
154160
if [[ -z "$DOCS_PR_NUMBER" ]]; then
155161
echo "DOCS_PR_NUMBER is not set; skipping failure comment on apify/apify-docs PR."

0 commit comments

Comments
 (0)