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

Ease adoption and maintenance of GitHub Actions with org-level re-usable workflows / starter workflows #21

Open
MattF-NSIDC opened this issue Aug 2, 2023 · 3 comments

Comments

@MattF-NSIDC
Copy link

https://docs.github.com/en/actions/using-workflows/reusing-workflows#reusable-workflows-and-starter-workflows

@MattF-NSIDC MattF-NSIDC changed the title Lower barrier to migrate to GitHub Actions with org-level re-usable workflows / starter workflows Ease adoption and maintenance of GitHub Actions with org-level re-usable workflows / starter workflows Aug 2, 2023
@MattF-NSIDC
Copy link
Author

MattF-NSIDC commented Aug 4, 2023

This looked fun so I explored some in my free time. This repo is now configured with a starter workflow (/workflow-templates/) and a re-usable workflow (/.github/workflows/).

Get started with the starter workflow in any repo by going to the "Actions" tab, and clicking "New workflow", then select from the "By National Snow and Ice Data Center" section.

I tested it on QGreenland and seems to be working fine. nsidc/qgreenland#709

@MattF-NSIDC
Copy link
Author

We could add a "conda lock" workflow that updates the conda lockfile on slash command /condalock on a PR:

https://github.com/CryoInTheCloud/hub-image/blob/main/.github/workflows/conda-lock-command.yml

Used in a PR:

https://github.com/CryoInTheCloud/hub-image/blob/main/.github/workflows/conda-lock-command.yml

@MattF-NSIDC
Copy link
Author

Or a re-usable workflow that checks if a conda-lock lockfile needs to be updated.

conda/conda-lock#479

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant