Skip to content

Automatically update crate version in generate templates #101

Automatically update crate version in generate templates

Automatically update crate version in generate templates #101

Workflow file for this run

on:
pull_request:
types:
- closed
branches:
- main
name: Create Release
jobs:
github-release:
name: Github Release
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'releases/') && github.event.pull_request.head.repo.full_name == "cloudflare/workers-rs"

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: '"cloudflare/workers-rs"'. Located at position 157 within expression: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'releases/') && github.event.pull_request.head.repo.full_name == "cloudflare/workers-rs"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Extract version
id: extract_version
run: |
BRANCH="${{ github.event.pull_request.head.ref }}"
VERSION=${BRANCH:10}
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.extract_version.outputs.version }}
release_name: Release v${{ steps.extract_version.outputs.version }}
draft: true
prerelease: false
generate_release_notes: true
commitish: ${{ github.event.pull_request.head.sha }}