aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMukilan Thiyagarajan <mukilan@igalia.com>2024-02-23 20:25:00 +0530
committerGitHub <noreply@github.com>2024-02-23 14:55:00 +0000
commit0a8b69879a849a5ad9af2066076343232b0c18b7 (patch)
tree226629847b20ba0396072d8d5ab78e5e33f3ac13 /.github
parentb182bdfa52db348fb0e9c1dcec66c0ad6e96b325 (diff)
downloadservo-0a8b69879a849a5ad9af2066076343232b0c18b7.tar.gz
servo-0a8b69879a849a5ad9af2066076343232b0c18b7.zip
ci: Fix nightly release action (#31420)
* ci: check result of dependent jobs explicitly Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in> * ci: use ubuntu latest image in more jobs Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in> --------- Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nightly.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 42b1a027ec8..04aace01f52 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -15,7 +15,7 @@ jobs:
# This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
name: Create Draft GH Release
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
steps:
- id: create-release
run: |
@@ -43,10 +43,10 @@ jobs:
# This job is only useful when run on upstream servo.
if: always() && (github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch')
name: Publish GH Release for nightly
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
steps:
- name: Publish as latest (success)
- if: success()
+ if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: |
gh api \
--method PATCH \
@@ -55,7 +55,7 @@ jobs:
/repos/${NIGHTLY_REPO}/releases/${RELEASE_ID} \
-F draft=false
- name: Publish as latest (failure)
- if: failure()
+ if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: |
gh api \
--method PATCH \