Skip to content

Commit

Permalink
Run the build on 'main' periodically to keep the caches alive (#754)
Browse files Browse the repository at this point in the history
Notes from Github:

* In a public repository, scheduled workflows are automatically disabled when no repository activity has occurred in 60 days. For information on re-enabling a disabled workflow, see "Disabling and enabling a workflow."

* When the last user to commit to the cron schedule of a workflow is removed from the organization, the scheduled workflow will be disabled. If a user with write permissions to the repository makes a commit that changes the cron schedule, the scheduled workflow will be reactivated. Note that, in this situation, the workflow is not reactivated by any change to the workflow file; you must alter the cron value and commit this change.
  • Loading branch information
mikeage authored Aug 2, 2024
1 parent 8b010d3 commit 6fd685f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ on: # yamllint disable-line rule:truthy
- "**"
tags:
- "v*"
schedule:
- cron: "34 19 * * sat" # Weekly, Saturday at 19:34 UTC

env:
UNITY_VERSION: "2022.3.34f1"
PHOTON_PAT: ${{ secrets.PHOTON_PAT }} # This needs to be here, since you can't use a ${{ secrets }} within an if: condition
jobs:
configuration:
if: |
(github.event_name == 'schedule') ||
(github.event_name == 'pull_request') ||
(
github.event_name == 'push' &&
Expand Down

0 comments on commit 6fd685f

Please sign in to comment.