Cleanup NS8 CI #2
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: Cleanup NS8 CI | |
| on: | |
| schedule: | |
| # Runs every night at 04:00 UTC | |
| - cron: '0 4 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| run-doctl: | |
| name: Execute doctl-ns8-ci.sh --delete | |
| runs-on: ubuntu-latest | |
| env: | |
| # Common env var used by doctl; set it so scripts that read the token from env work. | |
| DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.NS8_CI_DIGITALOCEAN_TOKEN }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install doctl and authenticate | |
| uses: digitalocean/action-doctl@v2 | |
| with: | |
| token: ${{ secrets.NS8_CI_DIGITALOCEAN_TOKEN }} | |
| - name: Remove unused NS8 CI resources | |
| run: ./scripts/doctl-ns8-ci.sh |