AWS Janitor #45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: AWS Janitor | |
| on: | |
| workflow_dispatch: {} | |
| schedule: | |
| - cron: '33 3 * * *' | |
| jobs: | |
| run-janitor: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: us-east-1 | |
| - name: Idenitity check | |
| run: aws sts get-caller-identity | |
| - name: Run janitor script | |
| run: ./scripts/janitor/aws-janitor.sh |