From 601e166b4faa7ccc263e1553a88c42d3cd05f212 Mon Sep 17 00:00:00 2001 From: Luong Nguyen Thanh Date: Mon, 17 Jun 2024 00:54:29 +0200 Subject: [PATCH] change the way how new commits are detected --- .github/workflows/create_pr_on_pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_pr_on_pr.yml b/.github/workflows/create_pr_on_pr.yml index b82e474a..7bc5f015 100644 --- a/.github/workflows/create_pr_on_pr.yml +++ b/.github/workflows/create_pr_on_pr.yml @@ -54,8 +54,8 @@ jobs: # Get the date of the latest commit on the translation branch latest_commit_date=$(git show -s --format=%ci ${TRANSLATION_BRANCH}) - commits=$(gh api repos/${{ github.repository }}/commits --paginate --jq ".[] | select(.commit.author.date > \"$latest_commit_date\") | .sha") - # commits=$(git log origin/"${EN_BRANCH#refs/heads/}" --since="$latest_commit_date" --pretty=format:"%H") + # commits=$(gh api repos/${{ github.repository }}/commits --paginate --jq ".[] | select(.commit.author.date > \"$latest_commit_date\") | .sha") + commits=$(git log origin/"${EN_BRANCH#refs/heads/}" --since="$latest_commit_date" --pretty=format:"%H") echo "Commits on the English branch that were made after the latest commit on the translation branch: $commits at $latest_commit_date" # Check if there are new commits