Skip to content

Merge branch 'release/1.0.2' into develop #22

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

Merged
merged 3 commits into from
Feb 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
env:
PR_TITLE: Merge branch '${{ github.head_ref }}' into ${{ env.BRANCH_DEVELOP }}
PR_BODY: |
This PR merges the branch `${{ github.head_ref }}` back into the branch `${{ env.BRANCH_DEVELOP }}`.
This PR merges the branch '${{ github.head_ref }}' back into the branch '${{ env.BRANCH_DEVELOP }}'.

This ensures that the updates on the branch `${{ github.head_ref }}`, i.e. CHANGELOG and manifest updates, are also present on the branch `${{ env.BRANCH_DEVELOP }}`.
This ensures that the updates on the branch '${{ github.head_ref }}', i.e. CHANGELOG and manifest updates, are also present on the branch '${{ env.BRANCH_DEVELOP }}'.
PR_LABEL: automated-pr
run: |
gh label create ${{ env.PR_LABEL }} --force
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.0.2](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.0.2-rc.0...v1.0.2) (2023-02-13)


### Bug Fixes

* **github-actions:** fix PR body ([4701d3a](https://github.com/ansidev/sample-gitflow-release-workflows/commit/4701d3a33ea1f9563662ac0ddeb47ceb972e66d6))

### [1.0.2-rc.0](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.0.1-rc.7...v1.0.2-rc.0) (2023-02-13)


Expand Down Expand Up @@ -60,7 +67,7 @@ All notable changes to this project will be documented in this file. See [standa

* **github-actions:** correct syntax ([dcea1b6](https://github.com/ansidev/sample-gitflow-release-workflows/commit/dcea1b6fde978a05ca3ff8855af26600e7a9f226))

### 1.0.1-rc.0 (2023-02-12)
### [1.0.1-rc.0](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.0.0-rc.1...v1.0.1-rc.0) (2023-02-12)

### Features

Expand Down
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
# sample-gitflow-release-workflows

Sample Gitflow release workflow using GitHub Actions.
[![Release](https://img.shields.io/github/release/ansidev/sample-gitflow-release-workflows.svg)](https://github.com/ansidev/sample-gitflow-release-workflows/releases)
[![Build Status](https://github.com/ansidev/sample-gitflow-release-workflows/workflows/release/badge.svg)](https://github.com/ansidev/sample-gitflow-release-workflows/actions)

Sample Gitflow release workflow using GitHub Actions and official [GitHub CLI](https://cli.github.com/manual/).

## Features

- Auto create and publish a new release on merging changes from `release/**`/`hotfix/**` into `main`.
- Auto create corresponding git tag with the released version.
- Auto create PR and merge changes from `release/**`/`hotfix/**` back into `develop`.

## Manual

- Workflow definitions: [release.yaml](./.github/workflows/release.yaml)
- You have to update two env variables: `BRANCH_MAIN`, `BRANCH_DEVELOP` if necessary.
- Workflows

| Name | Description | File |
| ------- | ------------------ | ------------------------------------------------ |
| Release | Automate releasing | [release.yaml](./.github/workflows/release.yaml) |

- You have to update below env variables if necessary

| Environment variable | Description | Default value |
| -------------------- | ---------------------- | ------------- |
| BRANCH_MAIN | The main branch | `main` |
| BRANCH_DEVELOP | The develop branch | `develop` |
| TAG_PREFIX | The prefix for git tag | `v` |

## Contact

Le Minh Tri [@ansidev](https://ansidev.xyz/about).

## License

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2-rc.0
1.0.2