We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1052d4 commit 32fdc97Copy full SHA for 32fdc97
1 file changed
.github/workflows/release-gate.yml
@@ -101,8 +101,8 @@ jobs:
101
DEPLOYMENT=$(gh api \
102
"repos/${{ github.repository }}/deployments" \
103
-F environment="$ENV" \
104
- -F per_page=50 \
105
- --jq --arg commit_time "$COMMIT_TIMESTAMP" --arg branch "$BRANCH" \
+ -F per_page=50 | \
+ jq --arg commit_time "$COMMIT_TIMESTAMP" --arg branch "$BRANCH" \
106
'map(select(.created_at > $commit_time and .ref == $branch)) | sort_by(.created_at) | reverse | .[0]')
107
108
if [[ -z "$DEPLOYMENT" || "$DEPLOYMENT" == "null" ]]; then
0 commit comments