Skip to content

Commit

Permalink
ci(.github/action): change the create-release-candidate action (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
maksym-shynkarenko authored Apr 25, 2024
1 parent 7e6c255 commit db854d0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 36 deletions.
2 changes: 2 additions & 0 deletions .github/actions/create-release-candidate-v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A GitHub Action to create a release candidate.
| `release-script-path` | Yes | The path to the [release script](#release-script-requirements) that creates the changelogs and bumps the version of the package(s) | NA |
| `version-locked` | No | Whether or not the version bump should treat major/minor as "locked". Repos which version-lock to axe-core should default this to `true`, overriding it to `false` only for releases that update `axe-core`. | `false` |
| `docs-repo` | No | The name of the repo where the release notes live | `null` |
| `docs-labels` | No | Labels for release notes issue. Comma-delimited list of labels (e.x. "release,PRIORITY: high") | NA |
| `should-checkout` | No | Whether or not the action should checkout the repository. | `true` |

## Example usage
Expand All @@ -33,6 +34,7 @@ jobs:
version-locked: 'false'
release-script-path: './prepare_release.sh'
docs-repo: 'my-docs-repo'
docs-labels: 'release,PRIORITY: high'
env:
GH_TOKEN: ${{ secrets.PAT }}
```
Expand Down
73 changes: 37 additions & 36 deletions .github/actions/create-release-candidate-v1/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ inputs:
required: true
version-locked:
description: 'Whether or not the version should be locked to axe-core'
default: 'false'
required: false
default: 'false'
docs-repo:
description: 'The name of the repo where the release notes live'
required: false
default: 'null'
docs-labels:
description: 'Labels for release notes issue. Comma-delimited list of labels (e.x. "release,PRIORITY: high")'
required: false
should-checkout:
description: 'Whether or not the action should checkout the repository'
required: false
default: 'true'

runs:
Expand Down Expand Up @@ -155,8 +159,9 @@ runs:
with:
token: ${{ inputs.token }}
repo: ${{ inputs.docs-repo }}
labels: 'PRIORITY: high,release'
labels: ${{ inputs.docs-labels }}
assignees: 'enlarsen'
project_number: '171'
column_name: 'To Do'
title: '${{ github.repository }} v${{ steps.get_bumped_version_number.outputs.version }} - Release Notes Needed'
body: |
Expand All @@ -170,7 +175,8 @@ runs:
with:
token: ${{ inputs.token }}
labels: 'PRIORITY: high,release'
column_name: 'Backlog'
project_number: '103'
column_name: 'Release Candidate'
title: '${{ github.repository }} v${{ steps.get_bumped_version_number.outputs.version }}'
body: |
# Below is everything related to this release
Expand All @@ -187,37 +193,32 @@ runs:
### Links
- [X] Release candidate PR: ${{ steps.create_pull_request.outputs.pull-request-url }}
- [ ] Release PR:
- [ ] Release audit:
```
## Release Steps
- [ ] Requested QA
- [ ] QA signoff on RC
- [ ] Release created
- [ ] Release audit done
- [ ] Release audit posted
- [ ] Release merged
- [ ] Deployed
- [ ] Posted in product-channel
## Additional Steps For AWS Deploys
- [ ] Docs Issue:
- [ ] Change Management Form:
- [ ] Notes:
```
```[tasklist]
### Common Tasks
- [ ] QA Started
- [ ] QA Signoff
- [ ] Release Created
- [ ] Release CI Success
- [ ] Release Audit
- [ ] Release Merged
- [ ] Release Merged CI Success
- [ ] Verify Deployments of Packages
- [ ] Done
```
```[tasklist]
### AWS Deployments
- [ ] AWS NOT NEEDED
- [ ] Emailed IHD
- [ ] Set up meeting for deployment
- [ ] Data migrations:
- [ ] Environment variables:
- [ ] Docker image:
- [ ] Smoke test passed
## Additional Steps Release Notes
- [ ] RELEASE NOTES NOT NEEDED
- [ ] Ticket created for release notes: ${{ steps.create_release_notes_issue.outputs.issue_url }}
- [ ] Release notes reviewed
- [ ] Release notes published
- [ ] Release notes: (public URL)
- name: Add release issue to release project board
uses: dequelabs/axe-api-team-public/.github/actions/add-to-board-v1@main
with:
issue-urls: ${{ steps.create_release_issue.outputs.issue_url }}
project-number: '103'
column-name: 'Upcoming'
- [ ] Submitted Change Management Form
- [ ] Approvals on Change Management Form
- [ ] Set Up Deployment Meeting
- [ ] Added Data Migrations into CMF
- [ ] Added Environment Variables into CMF
- [ ] Added Docker Image into CMF
- [ ] Smoke Test Passed
```

0 comments on commit db854d0

Please sign in to comment.