-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create github dbt action initial commit
- Loading branch information
0 parents
commit b110c79
Showing
32 changed files
with
19,865 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GITHUB_TOKEN={{Your Github Personal Access Token for local use only}} | ||
ATLAN_INSTANCE_URL={{Atlan instance URL, to be set as a repository secret.}} | ||
ATLAN_API_TOKEN={{Atlan Bearer token, to be set as a repository secret.}} | ||
IS_DEV={{True when running locally}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Package Action | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
package-action: | ||
name: Build Project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Package Action | ||
run: | | ||
npm i | ||
npm run build | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Atlan" | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | ||
git add . | ||
git commit -am "chore: package action" | ||
git push -u origin main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Test Action | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, reopened] | ||
|
||
jobs: | ||
get-downstream-assets: | ||
name: Get Downstream Assets | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: | | ||
echo "$GITHUB_CONTEXT" | ||
- name: Run Action | ||
uses: ./ | ||
with: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
ATLAN_INSTANCE_URL: ${{secrets.ATLAN_INSTANCE_URL}} | ||
ATLAN_API_TOKEN: ${{secrets.ATLAN_API_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.env | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Atlan dbt Action" | ||
description: "Get all the downstream assets that get affected when dbt model sql files are changed on pull request conversations." | ||
author: "Atlan" | ||
|
||
inputs: | ||
GITHUB_TOKEN: | ||
description: "GitHub token" | ||
required: true | ||
ATLAN_API_TOKEN: | ||
description: "Atlan API token" | ||
required: true | ||
ATLAN_INSTANCE_URL: | ||
description: "Atlan instance URL" | ||
required: true | ||
|
||
runs: | ||
using: "node16" | ||
main: "dist/index.js" | ||
|
||
branding: | ||
icon: activity | ||
color: blue |
Oops, something went wrong.