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 manual trigger, update readme from code.json #16

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

wpbonelli
Copy link
Contributor

@wpbonelli wpbonelli commented Dec 16, 2022

Since this repo only builds USGS programs and contains none of their source code, repo contents don't have a direct relationship to releases/version numbers, so the release mechanisms used for modflow6 and flopy aren't needed. Add workflow_dispatch CI trigger to allow manually starting releases from the GitHub UI or CLI, e.g. from the project root:

gh workflow run continuous_integration.yml

Also skip the step to publish a release if the workflow trigger is a push — only run it on manual trigger. This allows merging changes to master without making a new release and likewise making a release without updating master. With this PR, making a release just involves using the CLI or UI to manually trigger the workflow. If manually triggered, a release is automatically created, and a draft PR is opened into master to update the README.md from code.json if the version table has changed. If triggered by push, the workflow stops short of creating the release & PR.

Here is a sample run from my fork. In this run a PR was not created since release versions in the table have not changed, but a release was created.

This PR also adds the markdown version of code.json, code.md, as a release asset.

@wpbonelli wpbonelli force-pushed the update-ci branch 5 times, most recently from 51b4407 to fd8785d Compare December 21, 2022 13:21
@wpbonelli wpbonelli marked this pull request as ready for review December 21, 2022 13:24
@jdhughes-usgs jdhughes-usgs merged commit e253006 into MODFLOW-USGS:master Dec 21, 2022
@wpbonelli wpbonelli deleted the update-ci branch February 27, 2023 14:19
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.

None yet

2 participants