Matt Clarke
03/15/2023, 4:36 PMparse_workspace
and I'm not entirely sure what data is coming from where...any help would be appreciated!prha
03/15/2023, 7:20 PM- name: Clone Snowflake schema upon launch
if: github.event.action != 'closed'
uses: dagster-io/dagster-cloud-action/tree/main/actions/launch_job@v0.1
with:
organization: my_org_id
location: ${{ toJson(matrix.location) }}
dagster_cloud_api_token: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }}
deployment: ${{ steps.deploy.outputs.deployment }}
job: clone_prod
Matt Clarke
03/15/2023, 7:26 PMdeployment
argument hardcoded to prod
, and a few variables have changed. Location doesn't exist anymore for exampleMatt Clarke
03/15/2023, 7:38 PMclone_prod_snowflake_db:
runs-on: ubuntu-latest
needs: [parse_workspace, dagster_cloud_build_push]
name: Create branch deployment
if: github.event.action != 'closed'
steps:
- name: Clone production snowflake DB
if: github.event.action != 'closed'
uses: dagster-io/dagster-cloud-action/actions/utils/run@v0.1
with:
organization_id: ${{ secrets.ORGANIZATION_ID }}
deployment: ${{ github.ref_name }}
location_name: ${{ toJson(needs.parse_workspace.outputs.build_info.location) }}
job_name: clone_prod
env:
DAGSTER_CLOUD_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }}
I'm trying to do it with the underlying util instead with the above, but I'm running in to a graphql issueprha
03/15/2023, 7:57 PMlaunch_job
action. Can you share the trace with the graphql error?Matt Clarke
03/15/2023, 8:17 PMMatt Clarke
03/15/2023, 8:17 PMclone_prod_snowflake_db:
runs-on: ubuntu-latest
needs: [parse_workspace, dagster_cloud_build_push]
name: Modify branched snowflake table
steps:
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6
- name: Clone production Snowflake DB
if: github.event.action != 'closed'
uses: dagster-io/dagster-cloud-action/actions/utils/run@v0.1
with:
organization_id: ${{ secrets.ORGANIZATION_ID }}
deployment: ${{ steps.branch-name.outputs.current_branch }}
location_name: ${{ fromJSON(needs.parse_workspace.outputs.build_info)[0].name }}
job_name: clone_prod
env:
DAGSTER_CLOUD_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }}
Matt Clarke
03/15/2023, 8:19 PMDagsterCloudHTTPError: 401 Client Error: Unauthorized for url:
305
<https://dagster.cloud/***/dummy-branch-trigger/graphql>: Unauthorized
Matt Clarke
03/15/2023, 8:20 PMrepository
option? I'm seeing this at the top of the logs
Run dagster-io/dagster-cloud-action/actions/utils/run@v0.1
2
with:
3
organization_id: ***
4
deployment: dummy-branch-trigger
5
location_name: test-location
6
job_name: clone_prod
7
repository_name: __repository__
8
tags_json: {}
9
config_json: {}
10
env:
11
DAGSTER_CLOUD_URL:
12
DAGSTER_CLOUD_API_TOKEN: ***
Matt Clarke
03/15/2023, 8:21 PMprha
03/15/2023, 8:21 PM@repository
definition), then you use that name… if you are using Definitions
, you should use ___repository___
Matt Clarke
03/15/2023, 8:22 PMDefinitions
, so isn't thatMatt Clarke
03/15/2023, 8:35 PMprha
03/15/2023, 9:29 PMdaniel
03/15/2023, 9:43 PMdagster-io/dagster-cloud-action/actions/utils/deploy
step (not the branch name), something like this:
deployment: ${{ steps.deploy.outputs.deployment }}
Matt Clarke
03/15/2023, 9:53 PMMatt Clarke
03/15/2023, 9:55 PMMatt Clarke
03/15/2023, 9:55 PMdaniel
03/15/2023, 10:02 PMdagster-cloud ci branch-deployment <folder with your dagster_cloud.yaml in it>
Matt Clarke
03/16/2023, 5:16 PMprha
03/16/2023, 5:20 PM