-
-
Save KyMidd/d1cdc7980c1b51f268a79197eea5e27b to your computer and use it in GitHub Desktop.
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 CoPilot Licenses | |
| on: | |
| # Run automatically when master updated | |
| push: | |
| branches: | |
| - master | |
| # Run nightly at 5a UTC / 11p CT | |
| schedule: | |
| - cron: "0 5 * * *" | |
| # Permit manual trigger | |
| workflow_dispatch: | |
| jobs: | |
| cleanup_copilot_licenses: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Copilot License Cleanup | |
| id: cleanup_copilot_licenses | |
| uses: kymidd/CleanupCopilotLicenses@v1 | |
| with: | |
| github-org: "your-org-name" | |
| github-pat: ${{ secrets.PAT_NAME_HERE }} | |
| max-days-inactive: "30" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment