Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
ci(workflows): add delete-release-branch job
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 14, 2021
1 parent 708bc4d commit 804c006
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# - https://github.com/actions/checkout
# - https://github.com/actions/setup-node
# - https://github.com/actions-registry/github-repo-sync-upstream
# - https://github.com/dawidd6/action-delete-branch/tree/v3.1.0

---
name: continuous-deployment
Expand Down Expand Up @@ -182,3 +183,14 @@ jobs:
tag_name: process.env.tag
})
}
delete-release-branch:
name: Delete release branch
needs: [deployment-info, publish-release]
runs-on: ubuntu-latest
steps:
- id: delete
uses: dawidd6/action-delete-branch@v3.1.0
with:
branches: release/
github_token: ${{ github.token }}
suffix: ${{ needs.deployment-info.outputs.tag }}
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ Before releasing, the following steps must be completed:
- publish package to the [GitHub Package Registry][19] and
- update the production branch (merge branch `next` into `main`)
- publish the drafted release
- delete the release branch
- the maintainer who approved the PR should go through the PR's linked issues
and:
- make sure all issues are closed and have the label `status:merged`
Expand Down

0 comments on commit 804c006

Please sign in to comment.