nsidc / .github

1 stars 1 forks source link

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

Open MattF-NSIDC opened 1 year ago

MattF-NSIDC commented 1 year ago

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

MattF-NSIDC commented 1 year ago

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. https://github.com/nsidc/qgreenland/pull/709

MattF-NSIDC commented 1 year ago

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 commented 1 year ago

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

https://github.com/conda/conda-lock/issues/479