mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 05:34:57 +02:00
ci: add skip for nightly build (#1462)
This commit is contained in:
parent
6136ac8e76
commit
bcc89170a6
18
.github/workflows/nightly.yml
vendored
18
.github/workflows/nightly.yml
vendored
@ -19,10 +19,22 @@ env:
|
|||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# TODO: Add a pre-job check to skip if no change; may want to add something to check if there is a new rust version/week limit of skips?
|
# Check if things should be skipped.
|
||||||
|
pre-job:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- name: Check if this action should be skipped
|
||||||
|
id: skip_check
|
||||||
|
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1
|
||||||
|
with:
|
||||||
|
skip_after_successful_duplicate: "true"
|
||||||
|
do_not_skip: '["workflow_dispatch"]'
|
||||||
|
|
||||||
initialize-job:
|
initialize-job:
|
||||||
name: initialize-job
|
name: initialize-job
|
||||||
|
needs: pre-job
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check if mock
|
- name: Check if mock
|
||||||
@ -37,7 +49,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
build-release:
|
build-release:
|
||||||
needs: [initialize-job]
|
needs: initialize-job
|
||||||
uses: ./.github/workflows/build_releases.yml
|
uses: ./.github/workflows/build_releases.yml
|
||||||
with:
|
with:
|
||||||
caller: "nightly"
|
caller: "nightly"
|
||||||
@ -45,8 +57,8 @@ jobs:
|
|||||||
|
|
||||||
upload-release:
|
upload-release:
|
||||||
name: upload-release
|
name: upload-release
|
||||||
|
needs: build-release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-release]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user