Skip to content

Commit bb53b57

Browse files
authored
Add sync workflow (eclipse-score#46)
1 parent 4b96cec commit bb53b57

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.github/templatesyncignore.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
**/Module.bazel
2+
.DS_Store
3+
.bazelversion
4+
.gitignore
5+
**/BUILD
6+
src/
7+
tests/
8+
examples/
9+
docs/
10+
README.md
11+
project_config.bzl
12+
CODEOWNERS
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ styles/
5353
.venv
5454
__pycache__/
5555
/.coverage
56+
57+
# MacOS
58+
.DS_Store

0 commit comments

Comments
 (0)