Skip to content

Upgrade: [dependabot] - Bump NHSDigital/eps-common-workflows/.github/… #8

Upgrade: [dependabot] - Bump NHSDigital/eps-common-workflows/.github/…

Upgrade: [dependabot] - Bump NHSDigital/eps-common-workflows/.github/… #8

name: "Delete old cloudformation stacks"
# Controls when the action will run - in this case triggered manually and on schedule
on:
workflow_dispatch:
schedule:
- cron: "0 1,13 * * *"
push:
branches: [main]
jobs:
delete-old-cloudformation-stacks:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
steps:
- name: Checkout local code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: ${{ env.BRANCH_NAME }}
fetch-depth: 0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7
with:
aws-region: eu-west-2
role-to-assume: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }}
role-session-name: psu-delete-old-stacks
- name: delete stacks
shell: bash
working-directory: .github/scripts
run: ./delete_stacks.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
delete-old-proxygen-deployments:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
steps:
- name: Checkout local code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: ${{ env.BRANCH_NAME }}
fetch-depth: 0
- name: delete unused images
shell: bash
working-directory: .github/scripts
run: ./delete_unused_images.sh