From fd92d682a795002384fa35ade21cd7e7b50df829 Mon Sep 17 00:00:00 2001 From: David Koenitzer Date: Tue, 2 Apr 2024 10:52:28 -0400 Subject: [PATCH 1/2] Update action.yaml --- action.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/action.yaml b/action.yaml index 6bac1f3..5d1a7de 100644 --- a/action.yaml +++ b/action.yaml @@ -75,6 +75,10 @@ inputs: `description: "Deployed from commit ..."` with the value of `github.event.after`. This would display e.g. "Deployed from commit da39a3ee5e6b4b0d3255bfef95601890afd80709". Reference: https://docs.github.com/en/webhooks/webhook-events-and-payloads#push. + deploy-image: + required: false + default: false + description: "If true image and DAGs will deploy" outputs: preview-id: description: "The ID of the created deployment preview. Only works when action=create-deployment-preview" @@ -290,6 +294,11 @@ runs: dags_only=2 fi + if [[ ${{ inputs.deploy-image }} == true ]]; then + # make sure image and DAGs deploys because deploy-image is true + dags_only=0 + fi + echo "DAGS_ONLY=$dags_only" >> $GITHUB_OUTPUT shell: bash id: deployment-type From 5936bd1ca34f2302471fdb473e7fa1f395cc6d0f Mon Sep 17 00:00:00 2001 From: David Koenitzer Date: Tue, 2 Apr 2024 10:55:07 -0400 Subject: [PATCH 2/2] Update action.yaml --- action.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index 5d1a7de..5c1c7ae 100644 --- a/action.yaml +++ b/action.yaml @@ -92,7 +92,7 @@ runs: if: ${{ inputs.checkout }} == true with: fetch-depth: 0 # Fetch all history - ref: ${{ github.event.after }} + ref: ${{ github.event.after }} clean: false # Determine if only DAGs have changes - name: Install Astro CLI @@ -269,7 +269,6 @@ runs: - name: Get Deployment Type run: | cd ${{ inputs.root-folder }} - branch=$(echo "${GITHUB_REF#refs/heads/}") echo "Branch pushed to: $branch" git fetch origin $branch