From fb7e7056327e0affb7159c10121a61df283b742e Mon Sep 17 00:00:00 2001 From: Hamza A Date: Wed, 7 Feb 2024 15:07:11 +0100 Subject: [PATCH] update ci pipeline --- .github/workflows/deploy-to-astro.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-to-astro.yaml b/.github/workflows/deploy-to-astro.yaml index 11db2b0..11003d7 100644 --- a/.github/workflows/deploy-to-astro.yaml +++ b/.github/workflows/deploy-to-astro.yaml @@ -1,13 +1,23 @@ name: Astronomer CI - Deploy code on: + workflow_dispatch: + inputs: + deploymentId: + description: "Deployment ID" + required: true + type: string + apiToken: + description: "Astro API Token" + required: true + type: string push: branches: - main env: - ASTRO_API_TOKEN: ${{ secrets.ASTRO_API_TOKEN }} - DEPLOYMENT_ID: ${{ vars.DEPLOYMENT_ID }} + ASTRO_API_TOKEN: ${{ inputs.apiToken || secrets.ASTRO_API_TOKEN }} + DEPLOYMENT_ID: ${{ inputs.deploymentId || vars.DEPLOYMENT_ID }} jobs: build: