Skip to content

Commit

Permalink
chore(ci): run upgrade-provider on schedule (#121)
Browse files Browse the repository at this point in the history
This PR changes the scheduled check to directly run the upgrade on a
scheduled basis

Signed-off-by: Oscar Cobles <[email protected]>
  • Loading branch information
ocobles authored Jul 30, 2024
1 parent 5b0c65f commit 6433c3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/check-upstream-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,4 @@ jobs:
shell: bash
name: Check upstream upgrade
on:
workflow_dispatch: {} #so we can run this manually if necessary.
schedule:
# Run every 8 hours Monday through Friday
- cron: '0 */8 * * 1-5'
workflow_dispatch: {} #so we can run this manually if necessary
5 changes: 4 additions & 1 deletion .github/workflows/upgrade-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ on:
types:
- opened
workflow_dispatch: {}
schedule:
# Run every 8 hours Monday through Friday
- cron: '0 */8 * * 1-5'

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_PR_ASSIGN: ocobles
jobs:
upgrade_provider:
if: ${{ contains(github.event.issue.title, 'Upgrade terraform-provider-') || github.event_name == 'workflow_dispatch' }}
name: upgrade-provider
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 6433c3c

Please sign in to comment.