summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-08-03 12:20:23 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-08-04 15:28:13 +1000
commit6a7f761d7329ba155e2925decbf6a255441d83ee (patch)
treec6bf62c2d4248c52e6a9a2626eeec5932060d249 /.github
parentc2a3988d6c813055b29329699f6fb3df1aba3c16 (diff)
.github/workflows/wait-ofborg.yml: double timeout if staging
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/wait-ofborg.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/wait-ofborg.yml b/.github/workflows/wait-ofborg.yml
index 35c58b2e9120..3b40586fc27e 100644
--- a/.github/workflows/wait-ofborg.yml
+++ b/.github/workflows/wait-ofborg.yml
@@ -7,9 +7,12 @@ jobs:
steps:
- name: Wait for ofborg CI
run: |
- # wait for ~30min...
+ # eval sometimes takes a bit longer on staging.
+ if [[ "$BASE_BRANCH" == "refs/heads/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 360); do
+ for i in $(seq "$COUNTDOWN"); do
res=$(curl --silent \
-H "Accept: application/vnd.github.antiope-preview+json" \
-H "Authorization: token ${GITHUB_TOKEN}" \
@@ -26,6 +29,8 @@ jobs:
# ofborg is not checking forks.
if: github.repository_owner == 'NixOS'
env:
+ BASE_BRANCH: ${{ github.base_ref }}
+ COUNTDOWN: 360 # wait for ~30min...
GITHUB_TOKEN: ${{ github.token }}
COMMIT: ${{ github.event.pull_request.head.sha }}
OFBORG_APP_ID: 20500