Skip to content

Chore: Update nuget packages #2

Chore: Update nuget packages

Chore: Update nuget packages #2

Workflow file for this run

permissions:
contents: read
id-token: write
on:
pull_request:
types: [closed]
branches:
- dev
name: cleanup
jobs:
build:
runs-on: ubuntu-latest
environment: check
env:
SERVICE: ${{ vars.SERVICE }}
CDK_DEFAULT_REGION: ${{ vars.CDK_DEFAULT_REGION }}
CDK_DEFAULT_ACCOUNT: ${{ vars.CDK_DEFAULT_ACCOUNT }}
TAG: ${{ github.sha }}
name: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- name: Run detect stage
id: vars
run: |
echo "STAGE=$(echo ${{github.head_ref}} | sed -r 's/[^a-z0-9-]/-/gi' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::${{ env.CDK_DEFAULT_ACCOUNT }}:role/github-actions
role-duration-seconds: 900
aws-region: ${{ env.CDK_DEFAULT_REGION }}
- name: Run cdk destroy
run: |
npx cdk destroy ${{ env.SERVICE }}-${{ env.STAGE }}-app --force
npx cdk destroy ${{ env.SERVICE }}-${{ env.STAGE }}-ecr --force