Skip to content

Commit

Permalink
Update stats.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev authored Oct 17, 2024
1 parent d7afadb commit fb8bcd1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,31 @@ jobs:
direction: last
- run: |
echo "${{ steps.last-apk-aab-analysis.outputs.comment-body }}" >> apk_aab.log
echo ${{ steps.fc.outputs.comment-created-at }}
- name: Check for follow-up commits
env:
PR_NUMBER: ${{ matrix.prInfo.number }}
LAST_ANALYSIS_COMMENT_TIMESTAMP: ${{ steps.fc.outputs.comment-created-at }}
- run: |
commits=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/Rd4dev/Oppia-Android-Fork-from-Fork/pulls/${{ env.PR_NUMBER }}/commits")
echo "$commits"
new_commits=$(echo "$commits" | jq -r --arg comment_date "$LAST_ANALYSIS_COMMENT_TIMESTAMP" \
'.[] | select(.commit.committer.date > $comment_date) | .commit.committer.date')
echo "$new_commits"
if [ -n "$new_commits" ]; then
echo "New commits found after the comment timestamp:"
echo "$new_commits"
echo "new_commits=true" >> $GITHUB_ENV
else
echo "No new commits found after the comment timestamp."
echo "new_commits=false" >> $GITHUB_ENV
fi
- name: Compute PR head owner/repo reference
env:
Expand Down

0 comments on commit fb8bcd1

Please sign in to comment.