Skip to content

changes

changes #4

Workflow file for this run

name: 'Deploy to environments'
on:
push:
branches:
- main
tags:
- '*/*'
pull_request:
types: [opened, reopened, synchronize]
jobs:
deploy-test:
name: 'Deploy to test'
uses: ./.github/workflows/dabs.yml

Check failure on line 15 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to environments

Invalid workflow file

The workflow is not valid. In .github/workflows/deploy.yml (Line: 15, Col: 11): Error from called workflow javigoncompte/datastream-platform/.github/workflows/dabs.yml@935037d8d03eb09295c550d4686881eac27ebe3f (Line: 125, Col: 15): Unrecognized function: 'concat'. Located at position 1 within expression: concat(needs.detect-changes.outputs.changed-apps, needs.detect-changes.outputs.changed-packages) In .github/workflows/deploy.yml (Line: 15, Col: 11): Error from called workflow javigoncompte/datastream-platform/.github/workflows/dabs.yml@935037d8d03eb09295c550d4686881eac27ebe3f (Line: 125, Col: 15): Unexpected value '${{ concat(needs.detect-changes.outputs.changed-apps, needs.detect-changes.outputs.changed-packages) }}'
if: github.event_name == 'pull_request' || startsWith(github.ref, 'refs/tags/')
with:
workflow_name: 'Test deployment'
environment: 'test'
target: 'test'
secrets:
DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
deploy-qa:
name: 'Deploy to QA'
uses: ./.github/workflows/dabs.yml
needs: deploy-test
if: github.event_name == 'pull_request' || startsWith(github.ref, 'refs/tags/')
with:
workflow_name: 'QA deployment'
environment: 'qa'
target: 'qa'
secrets:
DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
deploy-prod:
name: 'Deploy to prod'
uses: ./.github/workflows/dabs.yml
needs: deploy-qa
if: github.ref == 'refs/heads/main'
with:
workflow_name: 'Prod deployment'
environment: 'prod'
target: 'prod'
secrets:
DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }}
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}