| 123456789101112131415161718 |
- name: sync-fork
- on:
- schedule:
- - cron: '0 0 * * *'
- workflow_dispatch:
- jobs:
- sync:
- # Only set the topic `has-issrc-build-env-sync-token` if the secret is available
- if: contains(github.event.repository.topics, 'has-issrc-build-env-sync-token')
- runs-on: ubuntu-latest
- permissions:
- contents: write
- steps:
- - run: gh repo sync $REPOSITORY -b $BRANCH_NAME
- env:
- GITHUB_TOKEN: ${{ secrets.ISSRC_BUILD_ENV_SYNC_TOKEN }}
- REPOSITORY: ${{ github.repository }}
- BRANCH_NAME: ${{ github.ref_name }}
|