From e4246ae85ffda3cd63bcf76fdff6b0b42b7af2c6 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Fri, 26 Apr 2024 13:50:22 -0400 Subject: [PATCH] Update update-be-new-migration-latest-timestamp.yml --- .../workflows/update-be-new-migration-latest-timestamp.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-be-new-migration-latest-timestamp.yml b/.github/workflows/update-be-new-migration-latest-timestamp.yml index 7fc6ae6de7..f137ea93ad 100644 --- a/.github/workflows/update-be-new-migration-latest-timestamp.yml +++ b/.github/workflows/update-be-new-migration-latest-timestamp.yml @@ -13,8 +13,10 @@ jobs: if: github.event.pull_request.merged == true steps: - name: Check out repository - uses: actions/checkout@v2 - + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Get list of newly added files in migration folder run: git diff --name-status HEAD^ HEAD backend/src/db/migrations | grep '^A' | cut -f2 | xargs -n1 basename > added_files.txt @@ -33,4 +35,3 @@ jobs: TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }} run: | git push https://$GITHUB_ACTOR:$TOKEN@github.com/${{ github.repository }}.git HEAD:main -