Skip to content

Commit

Permalink
Fixing documentation push permissions (#388)
Browse files Browse the repository at this point in the history
The default GITHUB_TOKEN should have proper permissions to push to
the gh-pages branch, the ROBOT_TOKEN is deprecated.
  • Loading branch information
dutow authored Dec 17, 2024
1 parent 8596e43 commit e507471
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Docs
on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- "documentation/**"

permissions:
contents: read
contents: write

jobs:
release:
Expand All @@ -26,16 +27,6 @@ jobs:
with:
python-version: "3.x"

- name: Configure git
env:
ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: |
git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com"
git config user.name "GitHub Action"
git config user.email "[email protected]"
git config user.password "${ROBOT_TOKEN}"
echo "GIT_USER=percona-platform-robot:${ROBOT_TOKEN}" >> $GITHUB_ENV
- name: Install MkDocs
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit e507471

Please sign in to comment.