From c16e2a011e4303494a986f2846ca34083b8b58dc Mon Sep 17 00:00:00 2001 From: Stefan Becker <97045788+BeckerStS@users.noreply.github.com> Date: Wed, 17 Jun 2026 13:08:03 +0200 Subject: [PATCH] Added workflow to sync github profile-readme-files - Always sync from public towards private. - Uses @BeckerStS PAT as SECRET (subject to change when bot is available) --- .../sync-org-profile-readme-workflow | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/sync-org-profile-readme-workflow diff --git a/.github/workflows/sync-org-profile-readme-workflow b/.github/workflows/sync-org-profile-readme-workflow new file mode 100644 index 0000000..83284c3 --- /dev/null +++ b/.github/workflows/sync-org-profile-readme-workflow @@ -0,0 +1,37 @@ +name: Sync profile README + +on: + push: + branches: [main] + paths: + - 'profile/README.md' + workflow_dispatch: + +jobs: + sync-profile-readme-files: + runs-on: ubuntu-latest + + steps: + - name: Checkout source (.github) + uses: actions/checkout@v4 + + - name: Checkout target (.github-private) + uses: actions/checkout@v4 + with: + repository: simatic-ax/.github-private + token: ${{ secrets.SB_PAT_RW_TOKEN }} + path: target + + - name: Copy README + run: | + mkdir -p target/profile + cp profile/README.md target/profile/README.md + + - name: Commit & push + run: | + cd target + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add profile/README.md + git diff --cached --quiet || git commit -m "Sync profile README from .github" + git push