Skip to content

Merge pull request #8 from PrinterLogic/PI-61314-golc-update-bedrock-… #1

Merge pull request #8 from PrinterLogic/PI-61314-golc-update-bedrock-…

Merge pull request #8 from PrinterLogic/PI-61314-golc-update-bedrock-… #1

name: Create a Release
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
# Allows checkout and add tag
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
fetch-tags: true
- name: Create Release
id: create_release
run:
latestTag=$(git describe --tags --abbrev=0)
patchVersion=$(echo $latestTag | perl -pi -e "s/^.*\.//g" 2&> /dev/null)
versionPrefix=$(echo $latestTag | perl -pi -e "s/\d$//g" 2&> /dev/null)
newVersion=$(echo "$versionPrefix$(($patchVersion + 1))")
gh release create $newVersion --generate-notes
env:
GH_TOKEN: ${{ github.token }

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

View workflow run for this annotation

GitHub Actions / Create a Release

Invalid workflow file

The workflow is not valid. .github/workflows/create-release.yml (Line: 33, Col: 21): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.