-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.04 KB
/
dbt-command.yaml
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
name: DBT Create Command
on:
pull_request:
types: [synchronize, opened, reopened]
jobs:
dbt_run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get changed files
id: files
uses: Ana06/[email protected]
- name: Create DBT Run Command
id: create-dbtrun-command
continue-on-error: true
run: |
python .github/workflows/scripts/create_dbt_run_command.py "${{ steps.files.outputs.all }}"
env:
GITHUB_OUTPUT: $GITHUB_ENV
- name: Delete previous comments
uses: izhangzhihao/delete-comment@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_user_name: github-actions[bot]
issue_number: ${{ github.event.number }}
- name: Comment PR
uses: thollander/actions-comment-pull-request@v1
with:
message: "${{ steps.create-dbtrun-command.outputs.pr-message }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}