Skip to content

feat: upgrade Github provider version from 5.x to 6.x (#277) #292

feat: upgrade Github provider version from 5.x to 6.x (#277)

feat: upgrade Github provider version from 5.x to 6.x (#277) #292

Workflow file for this run

name: "Deploy"
on:
workflow_dispatch: {}
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build-shard-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- id: set-matrix
run: |
stack=$(jq -rcM ".stacks | { stack: keys }" sharded-stacks.json)
echo "matrix=$stack" >> $GITHUB_OUTPUT
deploy:
uses: ./.github/workflows/deploy-cdktf-stacks.yml
needs: build-shard-matrix
with:
stacks: ${{ needs.build-shard-matrix.outputs.matrix }}
upgrade-repositories: true
secrets: inherit
deploy_constructs:
uses: ./.github/workflows/deploy-cdktf-stacks.yml
with:
stacks: '{"stack":["custom-constructs"]}'
upgrade-repositories: false
secrets: inherit