Skip to content

Commit

Permalink
GitHub Actions: Fix release flow (#3408)
Browse files Browse the repository at this point in the history
  • Loading branch information
And1sS authored Sep 2, 2024
1 parent 3e5e980 commit e016946
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,20 @@ name: Publish release

on:
push:
branches:
- master
tags:
- '*'

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 }}
name: "v${{ github.ref_name }}"
tag: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions extra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<pushChanges>false</pushChanges>
<autoVersionSubmodules>true</autoVersionSubmodules>
<tagNameFormat>@{project.version}</tagNameFormat>
<scmCommentPrefix xml:space="preserve">Prebid Server </scmCommentPrefix>
</configuration>
Expand Down

0 comments on commit e016946

Please sign in to comment.