-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
- 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 | ||
|