From 4e272550d30fbd7ec21decd7854ab4eee6d22d03 Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:44:08 +0000 Subject: [PATCH] Revert "make the credits action commit directly" (#1795) Revert "make the credits action commit directly (#1735)" This reverts commit 08f24cb6a202744e65c85f40f8aa24a7a4d762a0. --- .github/workflows/update-credits.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-credits.yml b/.github/workflows/update-credits.yml index c6d8dd93a7..fb3508385e 100644 --- a/.github/workflows/update-credits.yml +++ b/.github/workflows/update-credits.yml @@ -32,8 +32,21 @@ jobs: # Uncomment this and comment the other line if you do this. # https://github.com/stefanzweifel/git-auto-commit-action#push-to-protected-branches - - name: Commit new credit files - uses: stefanzweifel/git-auto-commit-action@v4 + #- name: Commit new credit files + # uses: stefanzweifel/git-auto-commit-action@v4 + # with: + # commit_message: Update Credits + # commit_author: PJBot + + # This will make a PR + - name: Set current date as env variable + run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 with: - commit_message: Update Credits - commit_author: DeltaV-Bot + commit-message: Update Credits + title: Update Credits + body: This is an automated Pull Request. This PR updates the github contributors in the credits section. + author: DeltaV-Bot + branch: automated/credits-${{env.NOW}}