Skip to content

Commit

Permalink
Create sync_fork.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdevs authored Jan 21, 2025
1 parent 391f692 commit 449d052
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/sync_fork.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Sync Fork

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Sync and merge upstream repository with your current repository
uses: dabreadman/[email protected]
with:
# URL of gitHub public upstream repo
upstream_repo: https://github.com/micronaut-projects/micronaut-core.git
# Branch to merge from upstream (defaults to downstream branch)
upstream_branch: 4.8.x
# Branch to merge into downstream
downstream_branch: 4.8.x
# GitHub Bot token
# token: ${{secrets.GITHUB_TOKEN}}
token: ${{secrets.REPO_SYNC_TOKEN}} #NEW TOKEN ADDED FOR ORG WITH WORKFLOW PERMISSION

0 comments on commit 449d052

Please sign in to comment.