From f74687f83c440078827f19a6311d9a3b59169c8d Mon Sep 17 00:00:00 2001 From: thomassth Date: Fri, 2 Aug 2024 02:52:46 -0400 Subject: [PATCH] tag change --- .github/workflows/prerelease.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index c3806818..b81fff4e 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -8,7 +8,7 @@ on: push: branches: [release, hotfix] tags: - - "v[0-9]+.[0-9]+.[0-9]+*" + - "[0-9]+.[0-9]+.[0-9]+*" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -28,18 +28,15 @@ jobs: - uses: subosito/flutter-action@v2 - run: dart --version - run: flutter --version + - name: Get Git Tag + id: get_tag + run: echo "TAG=$(git describe --tags)" >> $GITHUB_ENV - name: Edit pubspec.ymal for dev release run: | - sed -i "s/version.*/&-$GITHUB_RUN_ID/" pubspec.yaml + sed -i "s/version:.*/version: ${{ env.TAG }}/" pubspec.yaml - name: Get Changelog Entry id: changelog_reader uses: mindsers/changelog-reader-action@v2.0.0 - - name: Get Git Tag - id: get_tag - run: echo "TAG=$(git describe --tags)" >> $GITHUB_ENV - - - name: Use Git Tag - run: echo "The tag is ${{ env.TAG }}" - name: Edit changelog.md for dev release run: | sed -i "0,/\#\# \[.*/s//## [${{env.TAG}}]/" CHANGELOG.md