forked from krkn-chaos/krkn-hub
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tullio Sebastiani <[email protected]>
- Loading branch information
1 parent
55d94e4
commit 4ec9190
Showing
1 changed file
with
9 additions
and
3 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,14 +1,20 @@ | ||
name: Sync Workflow | ||
on: | ||
workflow_dispatch: | ||
|
||
permissions: write-all | ||
jobs: | ||
sync: | ||
name: Sync krkn-hub to the upstream repo | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Sync with GH CLI | ||
run: | | ||
gh repo sync redhat-chaos/krkn-hub -b main | ||
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 |