Skip to content

use the correct branch #120

use the correct branch

use the correct branch #120

Workflow file for this run

name: Deploy (checkdeployaction)
on:
push:
branches: [dev, main]
# tags:
# - '*'
# pull_request:
# types:
# - closed
# branches: [main]
workflow_dispatch:
jobs:
job-1:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
env:
ASTRO_API_TOKEN: ${{ secrets.ASTRO_API_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get install jq
# we need to pre-install the CLI to set the context
curl -sSL https://install.astronomer.io | sudo bash -s
- name: Set CLI context
run: astro context switch astronomer-stage.io
- name: Print GITHUB_ACTIONS env var
run: echo "GITHUB_ACTIONS=${GITHUB_ACTIONS}"
# - name: DBT Deploy
# uses: astronomer/deploy-action@fix/tag-event-case
# with:
# action: deploy
# deploy-type: dbt
# deployment-name: neel-test-1
# root-folder: dbt/
# mount-path: /dbt
# workspace: ${{ secrets.WORKSPACE_ID }}
# checkout-submodules: true
- name: Deploy DAGs/Image
uses: astronomer/deploy-action@fix/rebase-force-push
with:
deployment-name: neel-test
deploy-type: infer
workspace: ${{ secrets.WORKSPACE_ID }}