|
| 1 | +# ******************************************************************************* |
| 2 | +# Copyright (c) 2025 Contributors to the Eclipse Foundation |
| 3 | +# |
| 4 | +# See the NOTICE file(s) distributed with this work for additional |
| 5 | +# information regarding copyright ownership. |
| 6 | +# |
| 7 | +# This program and the accompanying materials are made available under the |
| 8 | +# terms of the Apache License Version 2.0 which is available at |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# SPDX-License-Identifier: Apache-2.0 |
| 12 | +# ******************************************************************************* |
| 13 | + |
| 14 | +name: Sync with template |
| 15 | +on: |
| 16 | + schedule: |
| 17 | + - cron: "0 0 1 * *" |
| 18 | + workflow_dispatch: |
| 19 | + |
| 20 | +jobs: |
| 21 | + repo-sync: |
| 22 | + if: github.repository != 'eclipse-score/module_template' |
| 23 | + runs-on: ubuntu-latest |
| 24 | + permissions: |
| 25 | + contents: write |
| 26 | + pull-requests: write |
| 27 | + steps: |
| 28 | + - name: Checkout |
| 29 | + uses: actions/checkout@v4 |
| 30 | + with: |
| 31 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 32 | + persist-credentials: false # needed see #557 and #627 |
| 33 | + - name: Sync Template Changes |
| 34 | + uses: AndreasAugustin/actions-template-sync@v2.5.2 |
| 35 | + with: |
| 36 | + source_gh_token: ${{ secrets.SCORE_APPROVALS_PAT }} |
| 37 | + target_gh_token: ${{ secrets.SCORE_APPROVALS_PAT}} |
| 38 | + source_repo_path: "eclipse-score/module_template" |
| 39 | + upstream_branch: "main" |
| 40 | + pr_title: "[Template Sync] Upstream template update" |
| 41 | + pr_commit_msg: "chore(template): upstream template update" |
| 42 | + git_user_name: eclipse-score-bot |
| 43 | + git_user_email: 187756813+eclipse-score-bot@users.noreply.github.com |
| 44 | + template_sync_ignore_file_path: ".github/.templatesyncignore" |
0 commit comments