-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 851 Bytes
/
Copy pathcreate_release.yml
File metadata and controls
26 lines (24 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Releases
on:
push:
branches:
- main
paths:
- 'git_change_request/__init__.py'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: get current version
run: |
pip install -r test-requirements.txt
echo "current_version=$(make show-version)" >> $GITHUB_ENV
cat CHANGELOG.md | egrep -n "# Version" | awk -F ':' '{print $1}' | echo $(($(sed -n 2p)-3)) | xargs -d'\n' -I{} head -n {} CHANGELOG.md >> current_release.md
- uses: ncipollo/release-action@v1
with:
tag: v${{ env.current_version }}
commit: ${{ github.sha }}
bodyFile: "current_release.md"
#Using my PAT because using the Github App Token does not support cascading triggering
token: ${{ secrets.GIT_TOKEN }}