Skip to content

Commit 6868b86

Browse files
committed
Fix generated dbt GitHub action
Use a single string for the Run step instead of a list.
1 parent 5a4a7ac commit 6868b86

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

  • splitgraph/cloud/project
  • test/splitgraph/cloud/project/snapshots/test_generation/test_generate_project_with_dbt/generate_project_dbt/.github/workflows

splitgraph/cloud/project/github_actions.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ def generate_job(
2929
steps.append(
3030
{
3131
"name": "Set up dbt Git URL",
32-
"run": [
33-
'echo "$CREDENTIALS_YML" > splitgraph.credentials.yml',
34-
'sed -i "s|\\$THIS_REPO_URL|https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY|g" splitgraph.credentials.yml',
35-
],
32+
"run": 'echo "$CREDENTIALS_YML" > splitgraph.credentials.yml && '
33+
'sed -i "s|\\$THIS_REPO_URL|https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY|g" splitgraph.credentials.yml',
3634
"shell": "bash",
3735
"env": {
3836
"CREDENTIALS_YML": "${{secrets.SPLITGRAPH_CREDENTIALS_YML}}",

test/splitgraph/cloud/project/snapshots/test_generation/test_generate_project_with_dbt/generate_project_dbt/.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ jobs:
5757
splitgraph_api_key: ${{ secrets.SPLITGRAPH_API_KEY }}
5858
splitgraph_api_secret: ${{ secrets.SPLITGRAPH_API_SECRET }}
5959
- name: Set up dbt Git URL
60-
run:
61-
- echo "$CREDENTIALS_YML" > splitgraph.credentials.yml
62-
- sed -i "s|\$THIS_REPO_URL|https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY|g"
60+
run: echo "$CREDENTIALS_YML" > splitgraph.credentials.yml && sed -i "s|\$THIS_REPO_URL|https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY|g"
6361
splitgraph.credentials.yml
6462
shell: bash
6563
env:

0 commit comments

Comments
 (0)