From 313a26115ebdae49a1c07899375792e8a41e30b9 Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Tue, 10 Dec 2024 05:44:38 +0000 Subject: [PATCH] feat: add dispatch trigger --- .github/workflows/prune-launch-templates.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/prune-launch-templates.yaml diff --git a/.github/workflows/prune-launch-templates.yaml b/.github/workflows/prune-launch-templates.yaml new file mode 100644 index 00000000000..2609c15328d --- /dev/null +++ b/.github/workflows/prune-launch-templates.yaml @@ -0,0 +1,23 @@ +on: + workflow_dispatch: + inputs: + dry_run: + required: false + default: true + max_age_in_days: + required: false + default: 14 + +jobs: + rerun: + runs-on: ubuntu-latest + steps: + - name: Prune launch templates + uses: ./.github/prune-launch-templates + with: + # inputs: + aws_access_key_id: ${{ env.AWS_ACCESS_KEY_ID }} + aws_secret_access_key: ${{ env.AWS_SECRET_ACCESS_KEY }} + aws_region: us-east-2 + max_age_in_days: ${{ inputs.max_age_in_days }} + dry_run: ${{ inputs.dry_run }}