Skip to content

Commit

Permalink
fixed syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuchitra532 committed Aug 3, 2023
1 parent ca27c9a commit 5bcf9bc
Showing 1 changed file with 23 additions and 29 deletions.
52 changes: 23 additions & 29 deletions .github/workflows/sync.yml
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"

0 comments on commit 5bcf9bc

Please # to comment.