Skip to content

Repo Sync

Repo Sync #1

Workflow file for this run

name: "Repo Sync"
on:
schedule:
# at 07:15 AM every day
- cron: "15 7 * * *"
pull_request:
branches:
- master
- main
- repo-sync
workflow_dispatch:
jobs:
repo-sync:
runs-on: ubuntu-latest
name: Repo sync
steps:
# https://github.com/marketplace/actions/github-app-token
- name: Create GitHub App installation token
uses: actions/[email protected]
id: create_token
with:
app-id: ${{ vars.FLOWZONE_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: >-
["${{ github.repository }}"]
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4
with:
persist-credentials: false
# https://github.com/repo-sync/github-sync
- name: Repo sync
uses: repo-sync/[email protected]
with:
source_repo: https://git.yoctoproject.org/git/poky
source_branch: "*" # Sync all branches
destination_branch: "*" # Sync all branches
github_token: ${{ steps.create_token.outputs.token }}
sync_tags: "true"