Github: CodeQl action (#146) #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Cache prepare release ')" | |
steps: | |
- name: Extract tag from commit message | |
run: | | |
target_tag=${COMMIT_MSG#"Prebid Cache 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 }} |