Sync Workflow #13
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
name: Sync Workflow | ||
on: | ||
workflow_dispatch: | ||
permissions: write-all | ||
jobs: | ||
sync: | ||
name: Sync krkn-hub to the upstream repo | ||
env: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Sync with GH CLI | ||
run: | | ||
git remote add upstream https://github.com/krkn-chaos/krkn-hub.git | ||
git fetch upstream | ||
git checkout main | ||
git rebase upstream/main | ||
git push origin +main |