summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2024-05-05 20:42:32 -0400
committerGitHub <noreply@github.com>2024-05-05 20:42:32 -0400
commitbcc89170a6f37046df5e62b5e7465c6ca37b6452 (patch)
tree88f9f3fc56d7e6bee42c1d2a4c22e021447210d7
parent6136ac8e7675c3f9c0406c3bfe5529cf2a493d2a (diff)
ci: add skip for nightly build (#1462)
-rw-r--r--.github/workflows/nightly.yml18
1 files changed, 15 insertions, 3 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index d8cf656e..ba8fb596 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -19,10 +19,22 @@ env:
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
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:
name: initialize-job
+ needs: pre-job
runs-on: ubuntu-latest
steps:
- name: Check if mock
@@ -37,7 +49,7 @@ jobs:
fi
build-release:
- needs: [initialize-job]
+ needs: initialize-job
uses: ./.github/workflows/build_releases.yml
with:
caller: "nightly"
@@ -45,8 +57,8 @@ jobs:
upload-release:
name: upload-release
+ needs: build-release
runs-on: ubuntu-latest
- needs: [build-release]
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1