aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/draft_new_release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/draft_new_release.yml')
-rw-r--r--.github/workflows/draft_new_release.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/draft_new_release.yml b/.github/workflows/draft_new_release.yml
index f83afe61..0e91926b 100644
--- a/.github/workflows/draft_new_release.yml
+++ b/.github/workflows/draft_new_release.yml
@@ -10,13 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ with:
+ ref: 'release'
- name: Extract version from milestone
run: |
VERSION="${{ github.event.milestone.title }}"
echo "::set-env name=RELEASE_VERSION::$VERSION"
- name: Create release branch
- run: git checkout -b release/${{ env.RELEASE_VERSION }}
+ run: git checkout -b release-${{ env.RELEASE_VERSION }}
- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@1.1.0
@@ -34,12 +36,12 @@ jobs:
git commit --message "Prepare release ${{ env.RELEASE_VERSION }}"
- name: Push new branch
- run: git push origin release/${{ env.RELEASE_VERSION }}
+ run: git push origin release-${{ env.RELEASE_VERSION }}
- name: Create pull request
uses: thomaseizinger/create-pull-request@1.0.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- head: release/${{ env.RELEASE_VERSION }}
- base: master
+ head: release-${{ env.RELEASE_VERSION }}
+ base: release
title: Release ${{ env.RELEASE_VERSION }}