Skip to content

Commit 4baa6fb

Browse files
authored
Merge branch 'hotfix/1.0.1-rc.2' into main (#6)
2 parents 05d895c + d912088 commit 4baa6fb

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
(startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix/'))
2424

2525
steps:
26+
- name: Set GitHub token
27+
run: |
28+
echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV
29+
30+
- name: Checkout repository
31+
uses: actions/checkout@v3
32+
with:
33+
ref: ${{ github.event.pull_request.head.ref }}
34+
token: ${{ env.GH_TOKEN }}
35+
2636
- name: Extract version from release branch
2737
if: startsWith(github.event.pull_request.head.ref, 'release/')
2838
run: |
@@ -37,10 +47,6 @@ jobs:
3747
VERSION=${BRANCH_NAME#hotfix/}
3848
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
3949
40-
- name: Set GitHub CLI token
41-
run: |
42-
echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV
43-
4450
- name: Create release
4551
env:
4652
RELEASE_TAG: "${{ env.TAG_PREFIX }}${{ env.RELEASE_VERSION }}"

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
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.
44

5+
### [1.0.1-rc.2](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.0.1-rc.1...v1.0.1-rc.2) (2023-02-12)
6+
7+
8+
### Bug Fixes
9+
10+
* **github-actions:** add missing checkout step ([e20f63a](https://github.com/ansidev/sample-gitflow-release-workflows/commit/e20f63ababd316d413b9573c727c68717b3b480d))
11+
512
### [1.0.1-rc.1](https://github.com/ansidev/sample-gitflow-release-workflows/compare/v1.0.1-rc.0...v1.0.1-rc.1) (2023-02-12)
613

714

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1-rc.1
1+
1.0.1-rc.2

0 commit comments

Comments
 (0)