Bump actions/cache from 3.3.3 to 4.1.1 #917
Workflow file for this run
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 new release" | |
on: | |
pull_request: | |
branches: | |
- 1.x | |
types: | |
- closed | |
jobs: | |
release: | |
name: Publish new release | |
runs-on: ubuntu-20.04 | |
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Extract version from branch name (for release branches) | |
run: | | |
BRANCH_NAME="${{ github.event.pull_request.head.ref }}" | |
VERSION=${BRANCH_NAME#release/} | |
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV | |
- name: Parse Changelog Entry | |
id: changelog | |
uses: coditory/[email protected] | |
with: | |
version: ${{ env.RELEASE_VERSION }} | |
- name: Create Release | |
uses: thomaseizinger/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
with: | |
target_commitish: ${{ github.event.pull_request.merge_commit_sha }} | |
tag_name: ${{ env.RELEASE_VERSION }} | |
name: ${{ env.RELEASE_VERSION }} | |
body: ${{ steps.changelog.outputs.description }} | |
draft: false | |
prerelease: false |