Skip to content

Commit

Permalink
Github sync action
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani committed Jan 24, 2024
1 parent 55d94e4 commit 4ec9190
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/sync.yml
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

0 comments on commit 4ec9190

Please sign in to comment.