-
Notifications
You must be signed in to change notification settings - Fork 51
44 lines (36 loc) · 1.19 KB
/
update-dbt-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: generate-dbt-docs-pages
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"
concurrency: dbt_docs_generation
jobs:
dbt_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, you will fail to push refs to the destination repo
- name: Python setup
uses: actions/setup-python@v4
with:
python-version: "3.9.x"
cache: 'pip' # caching pip dependencies
- name: Update dbt docs
run: |
pip install -r utils/dbt_docs/requirements.txt
python utils/dbt_docs/get_dbt_package_versions.py 'Bearer ${{ secrets.GITHUB_TOKEN }}'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: '[Auto-Generated] Update dbt reference docs'
branch: dbt-reference-docs
branch-suffix: random
delete-branch: true
reviewers: agnessnowplow
assignees: agnessnowplow
body: |
Update auto-generated dbt docs. Note this is an auto-generated PR from a github action, see the action or utils/dbt_docs for further information.
add-paths: |
./src/dbtVersions.js