Skip to content

Commit

Permalink
Remove profiles.yml setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mederka committed Jan 28, 2022
1 parent 37a87da commit 1d1e66c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ This action lets you trigger a job run on [dbt Cloud](https://cloud.getdbt.com),
- `dbt_cloud_token` - dbt Cloud [api token](https://docs.getdbt.com/docs/dbt-cloud/dbt-cloud-api/user-tokens)
- `dbt_cloud_account_id` - dbt Cloud account id
- `dbt_cloud_job_id` - dbt Cloud job id
- `dbt_profiles` - contents of a [profiles.yml](https://docs.getdbt.com/reference/profiles.yml/) as a string. (Please inline the keyfile [as seen in the example](https://docs.getdbt.com/reference/warehouse-profiles/bigquery-profile#service-account-json).)

We recommend passing sensitive variables as Github secrets. Example [here](https://github.com/fal-ai/fal_bike_example/blob/main/.github/workflows/fal_dbt.yml).

Expand All @@ -23,5 +22,4 @@ We recommend passing sensitive variables as Github secrets. Example [here](https
dbt_cloud_token: ${{ secrets.DBT_CLOUD_API_TOKEN }}
dbt_cloud_account_id: ${{ secrets.DBT_ACCOUNT_ID }}
dbt_cloud_job_id: ${{ secrets.DBT_JOB_ID }}
dbt_profiles: ${{ secrets.PROFILES_YML }}
```
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ inputs:
dbt_cloud_job_id:
description: "dbt Cloud job id"
required: true
dbt_profiles:
description: "contents of a profiles.yml as a string"
required: true
cause:
description: "Job trigger cause"
required: true
Expand Down
10 changes: 0 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,6 @@ function checkoutTargetBranch(git_sha) {
})
}

function setupProfiles() {
core.info('Setting up profiles.yml');
profiles = yaml.load(core.getInput('dbt_profiles'));
profilesYml = yaml.dump(profiles);
fs.writeFileSync('profiles.yml', profilesYml, 'utf8');
core.info('Done');
}

setupProfiles();

executeAction()
.then(git_sha => checkoutTargetBranch(git_sha))
.catch(e => {
Expand Down

0 comments on commit 1d1e66c

Please sign in to comment.