Skip to content

Sync IC private from IC public #5314

Sync IC private from IC public

Sync IC private from IC public #5314

name: Sync IC private from IC public
on:
schedule:
- cron: '*/10 * * * *'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
if: ${{ github.repository != 'dfinity/ic' }}
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
# The app used for this is actually PR_AUTOMATION_BOT_PRIVATE, but because the env
# vars need to be the same across both repos, we use the same names as the public one
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'master-private'
token: ${{ steps.app-token.outputs.token }}
- name: Sync changes from public ic
run: |
git config --global user.name "IDX GitHub Automation"
git config --global user.email "<>"
git remote add public https://github.com/dfinity/ic.git
git fetch public master
git push origin public/master:master-private