Skip to content

Sync personal forks #1260

Sync personal forks

Sync personal forks #1260

Workflow file for this run

name: Sync personal forks
on:
schedule:
# Run every 3 hours from 6am UTC/8am CEST to 3pm UTC/5pm CEST
- cron: '0 6-15/3 * * *'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Setup Go environment
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: "stable"
cache: false # Caching doesn't work without a go.sum file.
- name: Install latest ghh release
run: |
go install github.com/katexochen/ghh@latest
- name: Sync personal forks
env:
# GHH_CI_TOKEN is a classic personal access token with repo and workflow scopes.
GHH_TOKEN: ${{ secrets.GHH_CI_TOKEN }}
run: |
ghh sync-forks --target-branches=upstream --verbose