Skip to content

Fixes #299 Build nightly: don't skip the build step if workflow was started manually. - #300

Merged
rwmcintosh merged 2 commits into
Open-Systems-Pharmacology:developfrom
Yuri05:manual_run
Sep 11, 2025
Merged

Fixes #299 Build nightly: don't skip the build step if workflow was started manually.#300
rwmcintosh merged 2 commits into
Open-Systems-Pharmacology:developfrom
Yuri05:manual_run

Conversation

@Yuri05

@Yuri05 Yuri05 commented Sep 9, 2025

Copy link
Copy Markdown
Member

No description provided.

…ld step if workflow was started manually.
Copilot AI review requested due to automatic review settings September 9, 2025 17:36

This comment was marked as outdated.

msevestre
msevestre previously approved these changes Sep 9, 2025

@msevestre msevestre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add comment explainign what this all means?
e.g. (start only if xx and started manually?)

avoid logic duplication

This comment was marked as outdated.

@Yuri05

Yuri05 commented Sep 10, 2025

Copy link
Copy Markdown
Member Author

Should we add comment explainign what this all means? e.g. (start only if xx and started manually?)

added comments.

if: needs.get-latest-commit-timespan.outputs.LATEST_COMMIT_TIMESPAN >= 86400
needs: build-nightly
# run only if the build-nightly job was skipped
if: always() && needs.build-nightly.result == 'skipped'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified to avoid the duplication of the logic:
Run the cleanup-job only if the build-nightly job was skipped

@Yuri05
Yuri05 requested review from Copilot and msevestre September 10, 2025 10:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issue #299 by modifying the nightly build workflow to allow manual execution regardless of recent commit activity. The change ensures that when the workflow is triggered manually via workflow_dispatch, the build job runs even if there are no recent commits within the last 24 hours.

Key changes:

  • Updated the build-nightly job condition to include manual trigger events
  • Modified the cleanup-job to depend on the build job's completion status rather than commit timespan
  • Added comprehensive comments explaining the build conditions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Yuri05

Yuri05 commented Sep 10, 2025

Copy link
Copy Markdown
Member Author

The workflow is mostly the same as build-nightly for PK-Sim, MoBi and QualificationRunner (only the build-nightly job differs)
We should extract the common workflow parts later into a global reusable workflow which calls the "local" build job.

@rwmcintosh
rwmcintosh merged commit c690beb into Open-Systems-Pharmacology:develop Sep 11, 2025
1 check passed
@Yuri05
Yuri05 deleted the manual_run branch November 9, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants