Skip to content

Commit

Permalink
chore: remove check for comment time in PR release action
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhsuresh committed Jun 26, 2024
1 parent e0cfa32 commit d938fe3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/pr-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@ jobs:
id: pr_info
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMENT_AT: ${{ github.event.comment.created_at }}
run: |
pr="$(gh api repos/${{ github.repository }}/pulls/${{ github.event.issue.number }})"
head_sha="$(echo "$pr" | jq -r .head.sha)"
updated_at="$(echo "$pr" | jq -r .updated_at)"
if [[ $(date -d "$updated_at" +%s) -gt $(date -d "$COMMENT_AT" +%s) ]]; then
exit 1
fi
echo "head_sha=$head_sha" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit d938fe3

Please sign in to comment.