Skip to content

setup auto prs (#185) #1

setup auto prs (#185)

setup auto prs (#185) #1

name: Create Release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
if: github.event.head_commit.message =~ '^v\d.\d.\d$'

Check failure on line 13 in .github/workflows/create-release.yml

View workflow run for this annotation

GitHub Actions / Create Release

Invalid workflow file

The workflow is not valid. .github/workflows/create-release.yml (Line: 13, Col: 9): Unexpected symbol: '=~'. Located at position 34 within expression: github.event.head_commit.message =~ '^v\d.\d.\d$'
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.head_commit.message }}
release_name: ${{ github.event.head_commit.message }}
draft: false
prerelease: false