This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
chore(deps): Bump json5 from 1.0.1 to 1.0.2 in /crates/taker-electron #2158
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: "Create release" | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
create_release: | |
name: Create from merged release branch | |
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Extract version from branch name | |
id: extract-version | |
shell: python | |
run: | | |
branch_name = "${{ github.event.pull_request.head.ref }}" | |
version = branch_name.split("/")[1] | |
print(f"::set-output name=version::{version}") | |
- name: Extract changelog section for release | |
id: changelog | |
uses: coditory/changelog-parser@v1 | |
with: | |
version: ${{ steps.extract-version.outputs.version }} | |
- name: Create release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ITCHY_GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.extract-version.outputs.version }} | |
release_name: ${{ steps.extract-version.outputs.version }} | |
draft: false | |
prerelease: false | |
body: ${{ steps.changelog.outputs.description }} | |
commitish: ${{ github.event.pull_request.merge_commit_sha }} |