1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Try and get reposync branch updated on a cron (#16866)

Get repo sync updated on a cron as some extra hardening

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
This commit is contained in:
Chiedo John
2020-12-10 12:53:07 -05:00
committed by GitHub
parent 33fcc77183
commit 788d39f0ad
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
name: autoupdate reposync branch on cron
on:
schedule:
- cron: '*/5 * * * *'
autoupdate:
name: autoupdate
runs-on: ubuntu-18.04
steps:
- uses: docker://chinthakagodawita/autoupdate-action:v1
env:
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
PR_FILTER: labelled
PR_LABELS: 'automated-reposync-pr'
MERGE_MSG: "Branch was updated using the 'autoupdate reposync branch on cron' Actions workflow."

View File

@@ -52,7 +52,7 @@ jobs:
destination_branch: main
pr_title: 'repo sync'
pr_body: "This is an automated pull request to sync changes between the public and private repos.\n\n:robot: This pull request should be merged (not squashed) to preserve continuity across repos, so please let a bot do the merging!"
pr_label: automerge,autoupdate
pr_label: automerge,autoupdate,automated-reposync-pr
github_token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
- name: Find pull request