Skip to content

Change nothing

Change nothing #4

Workflow file for this run

name: Release on Merge
on:
pull_request:
types:
- closed
branches:
- main
paths-ignore:
- ".github/workflows/**"
jobs:
create_release:
if: github.event.pull_request.merged == true && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Format tag name
id: format_tag_name
run: |
TAG_NAME=$(echo "${{ github.event.pull_request.title }}" | tr ' ' '-' | tr '[:upper:]' '[:lower:]')
echo "::set-output name=formatted_tag_name::$TAG_NAME"
- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.format_tag_name.outputs.formatted_tag_name }}
name: ${{ github.event.pull_request.title }}
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
draft: false
prerelease: false