Terraform Test Object Nightly Cleanup #305
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: Sandbox Cleanup | |
| run-name: "Terraform Test Object Nightly Cleanup" | |
| on: | |
| schedule: | |
| - cron: '59 23 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| Run-Nightly-Cleanup: | |
| environment: provider-integration-testing-internal | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/${{ github.repository }}/provider_testing:latest | |
| env: | |
| CLIENT_ID: ${{ secrets.TESTING_CLIENT_ID }} | |
| CLIENT_SEC: ${{ secrets.TESTING_CLIENT_SECRET }} | |
| steps: | |
| - name: Checkout Terraform Repository | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: deploymenttheory/terraform-provider-jamfpro | |
| ref: main | |
| path: terraform-provider-jamfpro | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| - name: Set up Python Environment | |
| run: | | |
| pip install -r ./terraform-provider-jamfpro/testing/requirements.txt | |
| - name: Run full cleanup | |
| run: | | |
| cd ./terraform-provider-jamfpro/testing/jamfpy | |
| python clean_up.py -f |