From ac233c7b61c6e205aab1d16fe61ad0354be82b8f Mon Sep 17 00:00:00 2001 From: Nitish Bharambe Date: Fri, 10 Jul 2026 11:08:16 +0200 Subject: [PATCH 1/3] change to pr Signed-off-by: Nitish Bharambe --- .github/workflows/sync-examples.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sync-examples.yml b/.github/workflows/sync-examples.yml index 24b68ea..ba0c92a 100644 --- a/.github/workflows/sync-examples.yml +++ b/.github/workflows/sync-examples.yml @@ -19,8 +19,8 @@ jobs: uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 id: generate-token with: - client-id: ${{ secrets.RELEASE_BOT_APP_ID }} - private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} + client-id: ${{ secrets.CI_BOT_APP_ID }} + private-key: ${{ secrets.CI_BOT_PRIVATE_KEY }} repositories: power-grid-model-workshop - name: Checkout PGM workshop repository @@ -47,12 +47,16 @@ jobs: run: sed -i 's|\.\./\(.*\)\.md|https://power-grid-model.readthedocs.io/en/stable/\1.html|g' *.ipynb working-directory: power-grid-model-workshop/examples - - name: Commit and Push Changes to PGM workshop repository - uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0 + - name: create pull request + uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 with: - commit_message: Update the examples - repository: power-grid-model-workshop - commit_options: '--signoff' - commit_user_name: GitHub Actions Bot - commit_user_email: actions@github.com - commit_author: GitHub Actions Bot + commit-message: "Update the examples" + branch: "update/examples" + title: "Update the examples from power-grid-model" + body: "This PR updates the example notebooks from the main PGM repository." + labels: "sync-examples" + signoff: true + sign-commits: true + delete-branch: true + base: ${{ github.head_ref }} + token: ${{ steps.generate-token.outputs.token }} \ No newline at end of file From 085724e747eca405ec225b39209843d64cbd664d Mon Sep 17 00:00:00 2001 From: Nitish Bharambe Date: Fri, 10 Jul 2026 11:10:59 +0200 Subject: [PATCH 2/3] remove release env Signed-off-by: Nitish Bharambe --- .github/workflows/sync-examples.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sync-examples.yml b/.github/workflows/sync-examples.yml index ba0c92a..be0e073 100644 --- a/.github/workflows/sync-examples.yml +++ b/.github/workflows/sync-examples.yml @@ -12,7 +12,6 @@ on: jobs: sync-files: runs-on: ubuntu-latest - environment: release steps: - name: generate GitHub App token From 762f153187a1e76242ff79b2da5c7615354cb506 Mon Sep 17 00:00:00 2001 From: Nitish Bharambe Date: Fri, 10 Jul 2026 11:18:59 +0200 Subject: [PATCH 3/3] add path Signed-off-by: Nitish Bharambe --- .github/workflows/sync-examples.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sync-examples.yml b/.github/workflows/sync-examples.yml index be0e073..9aea9b5 100644 --- a/.github/workflows/sync-examples.yml +++ b/.github/workflows/sync-examples.yml @@ -49,6 +49,7 @@ jobs: - name: create pull request uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 with: + path: power-grid-model-workshop commit-message: "Update the examples" branch: "update/examples" title: "Update the examples from power-grid-model"