Skip to content

Upgrade: [dependabot] - bump asdf-vm/actions from 4.0.0 to 4.0.1 (#170) #289

Upgrade: [dependabot] - bump asdf-vm/actions from 4.0.0 to 4.0.1 (#170)

Upgrade: [dependabot] - bump asdf-vm/actions from 4.0.0 to 4.0.1 (#170) #289

name: 'Delete old cloudformation stacks'
# Controls when the action will run - in this case triggered manually
on:
workflow_dispatch:
schedule:
- cron: "0 2,14 * * *"
push:
branches: [main]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "combine-prs"
delete-old-cloudformation-stacks:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout local github scripts
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
with:
ref: ${{ env.BRANCH_NAME }}
sparse-checkout: |
.github/scripts
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
with:
aws-region: eu-west-2
role-to-assume: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }}
role-session-name: epsam-delete-old-cloudformation-stacks
- name: delete stacks
shell: bash
working-directory: .github/scripts
run: ./delete_stacks.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}