From 3fd1fbc355eb9f3d6d291bf54d5f45bcce561a0b Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Fri, 26 Apr 2024 14:28:13 -0400 Subject: [PATCH] Update update-be-new-migration-latest-timestamp.yml --- .../update-be-new-migration-latest-timestamp.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-be-new-migration-latest-timestamp.yml b/.github/workflows/update-be-new-migration-latest-timestamp.yml index f8030a450e..87862d8896 100644 --- a/.github/workflows/update-be-new-migration-latest-timestamp.yml +++ b/.github/workflows/update-be-new-migration-latest-timestamp.yml @@ -30,8 +30,10 @@ jobs: git add ./backend/src/db/migrations git commit -m "chore: renamed new migration files to latest timestamp (gh-action)" - - name: Push changes - env: - TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }} - run: | - git push https://$GITHUB_ACTOR:$TOKEN@github.com/${{ github.repository }}.git HEAD:refs/heads/main + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: 'chore: renamed new migration files to latest UTC(gh-action)' + title: 'GH Action: rename new migration file timestamp' + branch: main