forked from prebid/prebid-server-java
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 837 Bytes
/
release-drafter.yml
File metadata and controls
28 lines (26 loc) · 837 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
27
28
name: Publish release
on:
push:
branches:
- master
jobs:
update_release_draft:
name: Publish release with notes
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'Prebid Server prepare release ')"
steps:
- name: Extract tag from commit message
run: |
target_tag=${COMMIT_MSG#"Prebid Server prepare release "}
echo "TARGET_TAG=$target_tag" >> $GITHUB_ENV
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
- name: Create and publish release
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter-config.yml
publish: true
name: "v${{ env.TARGET_TAG }}"
tag: ${{ env.TARGET_TAG }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}