Skip to content

Merge branch 'stable' of https://github.com/uc-cdis/audit-service int… #150

Merge branch 'stable' of https://github.com/uc-cdis/audit-service int…

Merge branch 'stable' of https://github.com/uc-cdis/audit-service int… #150

Workflow file for this run

name: Build docs
on:
# DON'T run on pushed commits to master, ONLY on new commits on pull requests
push:
branches-ignore:
- 'master'
paths-ignore:
- 'docs/**'
# Use push trigger since 'paths-ignore' are not respected as expected by 'on.pull_request.paths-ignore', see https://github.com/actions/runner/issues/2324
pull_request:
types: [opened]
branches: [ master ]
jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
# Passing a PAT from the PlanXCybrog bot account here, since otherwise commit pushed by this action won't be able to trigger other actions, see https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#commits-made-by-this-action-do-not-trigger-new-workflow-runs
token: ${{ secrets.PLANXCYBORG_PAT }}
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- uses: actions/cache@preview
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles(format('{0}{1}', github.workspace, '/poetry.lock')) }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
pip install poetry
poetry install -vv --no-interaction
poetry show -vv
- name: Build docs
run: AUDIT_SERVICE_CONFIG_PATH=src/audit/config-default.yaml poetry run python run.py openapi
- uses: stefanzweifel/[email protected]
with:
commit_message: Apply automatic documentation changes
# Optional name of the branch the commit should be pushed to
# Required if Action is used in Workflow listening to the `pull_request` event
branch: ${{ github.head_ref }}