From ce36f4dbb17136aeeaf07d67d6597fffdc78d454 Mon Sep 17 00:00:00 2001 From: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com> Date: Sun, 29 Jun 2025 09:53:56 +0200 Subject: [PATCH 1/2] Update update-directorymd.yml --- .github/workflows/update-directorymd.yml | 27 ++++++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-directorymd.yml b/.github/workflows/update-directorymd.yml index 59b0565f1177..25c36396a6ab 100644 --- a/.github/workflows/update-directorymd.yml +++ b/.github/workflows/update-directorymd.yml @@ -22,12 +22,25 @@ jobs: extensions: .java show-extensions: false - - name: Commit and Push DIRECTORY.md + - name: Create branch, commit changes and open pull request + env: + BRANCH_NAME: update-directory-md-${{ github.run_id }} run: | - cat DIRECTORY.md - git config --global user.name "$GITHUB_ACTOR" - git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com" - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + + git checkout -b $BRANCH_NAME + git add DIRECTORY.md - git commit -am "Update directory" || true - git push origin HEAD:$GITHUB_REF + git commit -m "chore: update DIRECTORY.md" || echo "No changes to commit" + git push origin $BRANCH_NAME + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ env.BRANCH_NAME }} + title: "Update DIRECTORY.md" + body: | + This pull request updates the `DIRECTORY.md` file automatically. + base: master From 46a52c73a986d1e4dddeb24efcc5ae1b047913a9 Mon Sep 17 00:00:00 2001 From: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com> Date: Sun, 29 Jun 2025 10:12:36 +0200 Subject: [PATCH 2/2] Update update-directorymd.yml --- .github/workflows/update-directorymd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-directorymd.yml b/.github/workflows/update-directorymd.yml index 25c36396a6ab..dddb8dc7a5ac 100644 --- a/.github/workflows/update-directorymd.yml +++ b/.github/workflows/update-directorymd.yml @@ -39,7 +39,7 @@ jobs: uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ env.BRANCH_NAME }} + branch: update-directory-md-${{ github.run_id }} title: "Update DIRECTORY.md" body: | This pull request updates the `DIRECTORY.md` file automatically.