Test Binaries Cleanup #10
This file contains 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: Test Binaries Cleanup | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
schedule: | |
- cron: '0 7 15 * *' # once a month (15th) at 7AM UTC (2AM/EST, 3AM/EDT) | |
workflow_dispatch: | |
jobs: | |
clean_binaries: | |
name: Clean Test AppImages/Binaries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Authorize GCP | |
uses: google-github-actions/[email protected] | |
with: | |
credentials_json: '${{ secrets.GCP_CREDENTIALS }}' | |
- name: Set up Cloud SDK | |
uses: google-github-actions/setup-gcloud@v1 | |
- name: Remove Failed Test AppImages/Binaries | |
run: | | |
gsutil -m rm -r "gs://packages.viam.com/apps/viam-server/testing/`date +%Y-%m -d 'last month'`*" || true |