-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca27c9a
commit 5bcf9bc
Showing
1 changed file
with
23 additions
and
29 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,36 @@ | ||
name: 'Upstream Sync' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 4 * * 1-5' | ||
workflow_dispatch: | ||
|
||
workflow_dispatch: # click the button on Github repo! | ||
# inputs: | ||
# UPSTREAM_BRANCH: | ||
# description: "Upstream Branch" | ||
# required: true | ||
# DOWNSTREAM_BRANCH: | ||
# description: "Downstream Branch" | ||
# required: true | ||
|
||
jobs: | ||
sync_latest_from_upstream: | ||
runs-on: ubuntu-latest | ||
name: Sync latest commits from upstream repo | ||
|
||
name: Sync latest commits from upstream repo | ||
steps: | ||
- name: Checkout target repo | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
token: ${{ secrets.GH_TOKEN }} | ||
path: Manual | ||
- run: | | ||
git config user.name ksuchitra532 | ||
git config user.email ksuchitra532@gmail.com | ||
git config --local user.password ${{ secrets.GH_TOKEN }} | ||
git config --global --add safe.directory ${{ github.workspace }} | ||
# - name: Sync and merge upstream repository with your current repository | ||
# uses: dabreadman/sync-upstream-repo@v1.0.0.b | ||
# with: | ||
# # URL of gitHub public upstream repo | ||
# upstream_repo: "https://github.com/YoYoGames/GameMaker-Manual.git" | ||
# # Branch to merge from upstream (defaults to downstream branch) | ||
# upstream_branch: ${{ inputs.UPSTREAM_BRANCH }} | ||
# # Branch to merge into downstream | ||
# downstream_branch: ${{ inputs.DOWNSTREAM_BRANCH }} | ||
# # GitHub Bot token | ||
# token: ${{ secrets.GH_TOKEN }} | ||
- run: ${{ github.workspace }}/sync.sh YoYoGames/GameMaker-Manual-FR YoYoGames/GameMaker-Manual develop | ||
persist-credentials: false | ||
- name: repo-sync-develop | ||
uses: repo-sync/github-sync@v2 | ||
with: | ||
source_repo: "https://${{ secrets.GH_TOKEN }}@github.com//YoYoGames/GameMaker-Manual.git" | ||
source_branch: "develop" | ||
destination_branch: "develop" | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
sync_tags: "true" | ||
- name: repo-sync-lts-2022-r1 | ||
uses: repo-sync/github-sync@v2 | ||
with: | ||
source_repo: "https://${{ secrets.GH_TOKEN }}@github.com//YoYoGames/GameMaker-Manual.git" | ||
source_branch: "lts-2022-r1" | ||
destination_branch: "lts-2022-r1" | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
sync_tags: "true" | ||
|