Skip to content

Commit

Permalink
tag change
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Aug 2, 2024
1 parent 6baa353 commit f74687f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand Down

0 comments on commit f74687f

Please sign in to comment.