From 3876daf9b809973321839e7f56665c0a5df8b832 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Fri, 6 Mar 2026 10:54:43 +0100 Subject: [PATCH 1/2] add sync workflow and added ignore --- .github/templatesyncignore.txt | 12 ++++++++ .github/workflows/sync-template.yml | 44 +++++++++++++++++++++++++++++ .gitignore | 3 ++ 3 files changed, 59 insertions(+) create mode 100644 .github/templatesyncignore.txt create mode 100644 .github/workflows/sync-template.yml diff --git a/.github/templatesyncignore.txt b/.github/templatesyncignore.txt new file mode 100644 index 0000000..2f099f8 --- /dev/null +++ b/.github/templatesyncignore.txt @@ -0,0 +1,12 @@ +**/Module.bazel +.DS_Store +.bazelversion +.gitignore +**/BUILD +src/ +tests/ +examples/ +docs/ +README.md +project_config.bzl +CODEOWNERS diff --git a/.github/workflows/sync-template.yml b/.github/workflows/sync-template.yml new file mode 100644 index 0000000..36daf2a --- /dev/null +++ b/.github/workflows/sync-template.yml @@ -0,0 +1,44 @@ +# ******************************************************************************* +# Copyright (c) 2025 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + +name: Sync with template +on: + schedule: + - cron: "0 0 1 * *" + workflow_dispatch: + +jobs: + repo-sync: + if: github.repository != 'eclipse-score/module_template' + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + persist-credentials: false # needed see #557 and #627 + - name: Sync Template Changes + uses: AndreasAugustin/actions-template-sync@v2.5.2 + with: + source_gh_token: ${{ secrets.SCORE_APPROVALS_PAT }} + target_gh_token: ${{ secrets.SCORE_APPROVALS_PAT}} + source_repo_path: "eclipse-score/module_template" + upstream_branch: "main" + pr_title: "[Template Sync] Upstream template update" + pr_commit_msg: "chore(template): upstream template update" + git_user_name: eclipse-score-bot + git_user_email: 187756813+eclipse-score-bot@users.noreply.github.com + template_sync_ignore_file_path: ".github/.templatesyncignore" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 085f857..aa5f763 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,6 @@ styles/ .venv __pycache__/ /.coverage + +# MacOS +.DS_Store From b4d9bfefb62b1053cd5375ea9faecd426e533687 Mon Sep 17 00:00:00 2001 From: Frank Scholter Peres Date: Fri, 6 Mar 2026 10:55:14 +0100 Subject: [PATCH 2/2] add sync_template --- .github/workflows/sync-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-template.yml b/.github/workflows/sync-template.yml index 36daf2a..d46a7cf 100644 --- a/.github/workflows/sync-template.yml +++ b/.github/workflows/sync-template.yml @@ -41,4 +41,4 @@ jobs: pr_commit_msg: "chore(template): upstream template update" git_user_name: eclipse-score-bot git_user_email: 187756813+eclipse-score-bot@users.noreply.github.com - template_sync_ignore_file_path: ".github/.templatesyncignore" \ No newline at end of file + template_sync_ignore_file_path: ".github/.templatesyncignore"