aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/wait-ofborg.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/wait-ofborg.yml')
-rw-r--r--.github/workflows/wait-ofborg.yml37
1 files changed, 0 insertions, 37 deletions
diff --git a/.github/workflows/wait-ofborg.yml b/.github/workflows/wait-ofborg.yml
deleted file mode 100644
index 6ddf00bb1ef5..000000000000
--- a/.github/workflows/wait-ofborg.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: "Wait for ofborg"
-on:
- pull_request:
-jobs:
- tests:
- runs-on: ubuntu-latest
- steps:
- - name: Wait for ofborg CI
- run: |
- # Wait for ofborg ...
- # eval sometimes takes a bit longer on staging.
- if [[ "$BASE_BRANCH" == "staging" ]]; then
- COUNTDOWN=$((COUNTDOWN*2))
- fi
- # ..in future a better fix would be to make ofborg mark CI as pending right away.
- for i in $(seq "$COUNTDOWN"); do
- res=$(curl --silent \
- -H "Accept: application/vnd.github.antiope-preview+json" \
- -H "Authorization: token ${GITHUB_TOKEN}" \
- "https://api.github.com/repos/NixOS/nixpkgs/commits/${COMMIT}/check-runs" | \
- jq ".check_runs | map(.app) | map(.id) | contains([${OFBORG_APP_ID}])")
- if [[ "$res" == "true" ]]; then
- exit 0
- fi
- sleep 5
- echo "."
- done
- echo "Timeout!"
- exit 1
- # ofborg is not checking forks.
- if: github.repository_owner == 'NixOS'
- env:
- BASE_BRANCH: ${{ github.base_ref }}
- COUNTDOWN: 540 # wait for ~45min...
- GITHUB_TOKEN: ${{ github.token }}
- COMMIT: ${{ github.event.pull_request.head.sha }}
- OFBORG_APP_ID: 20500