Skip to content

Commit

Permalink
change the way how new commits are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
ntluong95 committed Jun 16, 2024
1 parent 6e755e3 commit 601e166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create_pr_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 601e166

Please sign in to comment.