Skip to content

Release for v1.21.51 #22

Release for v1.21.51

Release for v1.21.51 #22

Workflow file for this run

name: Create MCPACK and Release on Push
on:
push:
branches:
- main
paths-ignore:
- ".github/**"
- ".gitignore"
jobs:
create-release:
if: startsWith(github.event.head_commit.message, 'Release for')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract version from commit message
id: extract-version
run: |
version=$(echo "${{ github.event.head_commit.message }}" | sed -n 's/^Release \(v[0-9]*\.[0-9]*\.[0-9]*\).*$/\1/p')
echo "version=$version" >> $GITHUB_ENV
- name: Create tag
run: |
git tag ${{ env.version }}
git push origin ${{ env.version }}
- name: Make ZIP for MCPACK
run: |
zip -r oreui-utilities.zip.mcpack * -x "*.git*" ".github/*" ".gitignore"
- name: Upload to release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |

Check failure on line 38 in .github/workflows/make_mcpack.yml

View workflow run for this annotation

GitHub Actions / Create MCPACK and Release on Push

Invalid workflow file

The workflow is not valid. .github/workflows/make_mcpack.yml (Line: 38, Col: 12): Unexpected symbol: 'version:1'. Located at position 5 within expression: env.version:1
gh release create ${{ env.version }} oreui-utilities.zip.mcpack --title "For ${{ env.version:1 }} ONLY" --notes "Pack icon and code by @Stivusik ($(TZ='Asia/Dhaka' date +'%Y%M%d'))" --latest