Skip to content

Commit

Permalink
Create sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Stonley890 authored Oct 30, 2023
1 parent 059fa88 commit b3e3553
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
schedule:
- cron: "2 0 * * 1-5"
jobs:
sync:
runs-on: ubuntu-18.04
steps:
- name: Sync Upstream
# You may pin to the exact commit or the version.
# uses: zhangnew/sync-upstream@65060a2fa0bbbbf7ef07add408d1ed3dae9e53f8
uses: zhangnew/sync-upstream@v1
with:
# User name - required for git commits
username: Stonley890
# User email - required for git commits
useremail: 79172597+Stonley890@users.noreply.github.com
# Upstream repository owner/name. For example, zhangnew/sync-upstream
upstream: Stonley890/Dreamvisitor
# Upstream branch to merge from. For example, master
upstream-branch: master
# Branch to merge to. For example, master
branch: master
# Personal access token (PAT) used to fetch the repository. The PAT is configured with the local git config, which enables your scripts to run authenticated git commands. The post-job step removes the PAT. We recommend using a service account with the least permissions necessary. Also when generating a new PAT, select the least scopes necessary. [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)

token: ${{ github.token }}

0 comments on commit b3e3553

Please sign in to comment.