Compare commits
12 Commits
2ba0751443
...
uat
| Author | SHA1 | Date | |
|---|---|---|---|
| f03a27bedc | |||
| ec1acbb130 | |||
| 5907a494d0 | |||
| 5e6cd6603b | |||
| d7cbe969fb | |||
| 7f03ae6265 | |||
| 9502ca804d | |||
| bfeb1068bb | |||
| 2aff05b632 | |||
| d37431ce8c | |||
| 36e220660d | |||
| 48d704a6b6 |
@@ -15,13 +15,9 @@ jobs:
|
|||||||
promotion-gate:
|
promotion-gate:
|
||||||
name: Promotion Gate
|
name: Promotion Gate
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ubuntu:latest
|
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
|
||||||
run: apt-get update -qq && apt-get install -y --no-install-recommends curl jq
|
|
||||||
|
|
||||||
- name: Check promotion approval
|
- name: Check promotion approval
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
@@ -87,7 +83,8 @@ jobs:
|
|||||||
REVIEWS=$(curl -sf \
|
REVIEWS=$(curl -sf \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
"https://git.farh.net/api/v1/repos/${REPO}/pulls/${PR_NUMBER}/reviews")
|
"https://git.farh.net/api/v1/repos/${REPO}/pulls/${PR_NUMBER}/reviews" \
|
||||||
|
| python3 -c 'import sys,json; json.dump(json.load(sys.stdin),sys.stdout)')
|
||||||
|
|
||||||
if [ -z "${REVIEWS}" ] || [ "${REVIEWS}" = "null" ]; then
|
if [ -z "${REVIEWS}" ] || [ "${REVIEWS}" = "null" ]; then
|
||||||
echo "::warning::Could not fetch reviews for PR #${PR_NUMBER}."
|
echo "::warning::Could not fetch reviews for PR #${PR_NUMBER}."
|
||||||
|
|||||||
Reference in New Issue
Block a user