Skip to content

πŸ”„ Template Sync #11

πŸ”„ Template Sync

πŸ”„ Template Sync #11

Workflow file for this run

name: πŸ”„ Template Sync
on:
schedule:
- cron: '0 0 1 * *' # πŸ•› Run monthly on the 1st at 00:00 UTC
workflow_dispatch:
permissions:
actions: write
contents: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
repo-sync:
name: πŸ” Sync Repository
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout Repository
uses: actions/checkout@v5
with:
token: ${{ secrets.REPO_SYNC_TOKEN }}
- name: πŸ”„ Sync Template
uses: xesrevinu/actions-template-sync@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
target_gh_token: ${{ secrets.REPO_SYNC_TOKEN }}
source_gh_token: ${{ secrets.REPO_SYNC_TOKEN }}
source_repo_path: opraying/template
upstream_branch: main
is_pr_cleanup: true
pr_labels: πŸ” template-sync
- name: πŸ“Š Report Sync Status
if: always()
run: |
if [ ${{ job.status }} == 'success' ]; then
echo "βœ… Template sync completed successfully!"
else
echo "❌ Template sync failed. Please check the logs for details."
fi