mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
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>
This commit is contained in:
parent
b182bdfa52
commit
0a8b69879a
1 changed files with 4 additions and 4 deletions
8
.github/workflows/nightly.yml
vendored
8
.github/workflows/nightly.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
||||||
# This job is only useful when run on upstream servo.
|
# This job is only useful when run on upstream servo.
|
||||||
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
|
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
|
||||||
name: Create Draft GH Release
|
name: Create Draft GH Release
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- id: create-release
|
- id: create-release
|
||||||
run: |
|
run: |
|
||||||
|
@ -43,10 +43,10 @@ jobs:
|
||||||
# This job is only useful when run on upstream servo.
|
# This job is only useful when run on upstream servo.
|
||||||
if: always() && (github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch')
|
if: always() && (github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch')
|
||||||
name: Publish GH Release for nightly
|
name: Publish GH Release for nightly
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Publish as latest (success)
|
- name: Publish as latest (success)
|
||||||
if: success()
|
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
|
||||||
run: |
|
run: |
|
||||||
gh api \
|
gh api \
|
||||||
--method PATCH \
|
--method PATCH \
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
||||||
/repos/${NIGHTLY_REPO}/releases/${RELEASE_ID} \
|
/repos/${NIGHTLY_REPO}/releases/${RELEASE_ID} \
|
||||||
-F draft=false
|
-F draft=false
|
||||||
- name: Publish as latest (failure)
|
- name: Publish as latest (failure)
|
||||||
if: failure()
|
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
||||||
run: |
|
run: |
|
||||||
gh api \
|
gh api \
|
||||||
--method PATCH \
|
--method PATCH \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue