Skip to content

chore: fix usage of node-fetch in upgrade workflow (#221) #229

chore: fix usage of node-fetch in upgrade workflow (#221)

chore: fix usage of node-fetch in upgrade workflow (#221) #229

Workflow file for this run

name: "Deploy"
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
build-shard-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- 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