Skip to content

GitHub Actions for automating releases and other tasks

License

Notifications You must be signed in to change notification settings

cylc/release-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5a63bea · Sep 21, 2021

History

38 Commits
Sep 13, 2021
Sep 9, 2020
Sep 21, 2021
Aug 23, 2021
Jan 4, 2021
Feb 23, 2021
Jan 4, 2021
Oct 30, 2020
Sep 21, 2021
Sep 13, 2021
Sep 9, 2020
Sep 9, 2020
Sep 9, 2020
Aug 4, 2021
Aug 3, 2021
Sep 9, 2020

Repository files navigation

release-actions

GitHub Actions for automating releases

Usage

Use the repository + path to the action subdirectory in the workflow.

As an example - in a workflow's jobs.<job_id>.steps section:

- name: Create & checkout PR branch
  uses: cylc/release-actions/stage-1/checkout-pr-branch@v1

Some actions require inputs or env variables, e.g.

- name: Comment on the release PR with the results & next steps
  uses: cylc/release-actions/stage-2/comment-on-pr@v1
  with:
    release-url: ${{ steps.create-release.outputs.html_url }}
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

See the action.yml file for what is required for a particular action.

Contributing

The v1 branch should be updated to point at the latest release that maintains backwards compatibility (when I say "release", I mean commit, really, as we're not using tags to mark releases). When a breaking change is introduced, we should create a v2 branch and leave the v1 branch where it is (might also be a good idea to add a v2.0.0 tag just to mark the start point).

Note: Certain modules (e.g. cylc-action-utils.js) may be kept in node_modules/ so that they don't have to be referenced by path when using require(), and should be unignored in .gitignore. For some reason, yarn install causes these modules to be deleted, so stick to npm install.

Info on "composite run step" actions: