Skip to content
Prev Previous commit
Next Next commit
permissions
  • Loading branch information
rrichaz committed Apr 18, 2022
commit 53a84d9340cfe7e35e9588bf4c951f86f6e40454
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,29 @@ on:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

permissions:
contents: 'read'
id-token: 'write'
pull-requests: 'write'
jobs:
build:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'

steps:
- name: Checkout Branch
uses: actions/checkout@v3
with:
persist-credentials: false
if: github.event_name == 'pull_request'
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: Checkout Master
uses: actions/checkout@v3
with:
persist-credentials: false
if: github.event_name == 'push'
with:
fetch-depth: 0
Expand All @@ -43,6 +49,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install mkdocs-material
run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'

- name: Check
run: |
Expand Down