.github/workflows/teamcity-nightly-sweeper.yaml #57
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: "TeamCity: Remove branches used for nightly test" | |
# TeamCity should use a newly created branches that matches the pattern `nightly-test` and is the only branch matching that pattern. We rename past nightly test branches to avoid there being more than one `nightly-test` branch (i.e. only one branch that matches the filter (+:nightly-test). This workflow also removes renamed branches once they get past a certain age. | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 9 * * *' # UTC 9AM (-7)-> 2PM PST | |
jobs: | |
# uses the same teamcity nightly workflow used in terraform-provider-google | |
# as well as the default value for DAYS_THRESHOLD | |
tpg-teamcity-nightly-workflow: | |
uses: hashicorp/terraform-provider-google/.github/workflows/teamcity-nightly-sweeper.yaml@main |