Skip to content

Commit 6c49ace

Browse files
authored
Merge pull request #2491 from ag2ai/ci/build-docs-by-pat
ci: use PAT to build docs
2 parents 31b0ea0 + 653e4bc commit 6c49ace

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

.github/workflows/docs_build.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17-
with:
17+
with: # zizmor: ignore[artipacked]
1818
fetch-depth: 0
19-
persist-credentials: false
19+
token: ${{ secrets.AUTOMERGE_TOKEN }}
2020
- uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1
2121
with:
2222
version: "latest"
@@ -46,11 +46,6 @@ jobs:
4646
- run: echo $VERSION
4747
- run: echo $IS_RC
4848

49-
- name: Configure Git user
50-
run: |
51-
git config --local user.email "faststream-actions[bot]@users.noreply.github.com"
52-
git config --local user.name "faststream-actions[bot]"
53-
5449
- name: Build docs
5550
run: |
5651
if [ "$IS_RC" == "False" ]; then
@@ -76,6 +71,3 @@ jobs:
7671
branch: gh-pages
7772
push_options: "--force" # force push to stay with clear gh-pages branch history
7873
commit_message: "docs: deploy docs"
79-
commit_user_name: faststream-actions[bot]
80-
commit_user_email: faststream-actions[bot]@users.noreply.github.com
81-
commit_author: faststream-actions[bot] <faststream-actions[bot]@users.noreply.github.com>

.github/workflows/docs_update-release-notes.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ jobs:
2424
- uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1
2525
with:
2626
version: "latest"
27-
- name: Configure Git user
28-
run: |
29-
git config --local user.email "faststream-actions[bot]@users.noreply.github.com"
30-
git config --local user.name "faststream-actions[bot]"
3127

3228
- name: Set up Python
3329
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0

.github/workflows/pr_automerge.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
automerge:
88
name: Enable pull request automerge
99
runs-on: ubuntu-latest
10-
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'faststream-actions[bot]'
10+
if: github.event.pull_request.user.login == 'dependabot[bot]'
1111

1212
permissions:
1313
pull-requests: write
@@ -23,7 +23,7 @@ jobs:
2323
name: Automatically approve pull request
2424
needs: [automerge]
2525
runs-on: ubuntu-latest
26-
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'faststream-actions[bot]'
26+
if: github.event.pull_request.user.login == 'dependabot[bot]'
2727

2828
permissions:
2929
pull-requests: write

0 commit comments

Comments
 (0)