Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add skip for nightly build #1462

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,16 +49,16 @@ jobs:
fi

build-release:
needs: [initialize-job]
needs: initialize-job
uses: ./.github/workflows/build_releases.yml
with:
caller: "nightly"
secrets: inherit

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
Expand Down