Skip to content

Commit

Permalink
update version-check scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bachue committed Dec 2, 2024
1 parent 2e92c17 commit 7cd8627
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/version-check-base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Dart SDK Version Check
on:
push:
tags:
- "base-[0-9]+.[0-9]+.[0-9]+"
jobs:
linux:
name: Version Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set env
run: |
echo "BASE_VERSION=${GITHUB_REF#refs/*/base-}" >> $GITHUB_ENV
- name: Check
run: |
set -e
grep -qF "## ${BASE_VERSION}" base/CHANGELOG.md
grep -qF "final Version currentVersion = Version.parse('${BASE_VERSION}');" base/lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Dart / Flutter SDK Version Check
name: Flutter SDK Version Check
on:
push:
tags:
- "base-[0-9]+.[0-9]+.[0-9]+"
- "flutter-[0-9]+.[0-9]+.[0-9]+"
jobs:
linux:
Expand All @@ -13,12 +12,9 @@ jobs:
uses: actions/checkout@v2
- name: Set env
run: |
echo "BASE_VERSION=${GITHUB_REF#refs/*/base-}" >> $GITHUB_ENV
echo "FLUTTER_VERSION=${GITHUB_REF#refs/*/flutter-}" >> $GITHUB_ENV
- name: Check
run: |
set -e
grep -qF "## ${BASE_VERSION}" base/CHANGELOG.md
grep -qF "final Version currentVersion = Version.parse('${BASE_VERSION}');" base/lib/src/version.dart
grep -qF "## ${FLUTTER_VERSION}" flutter/CHANGELOG.md
grep -qF "final Version currentVersion = Version.parse('${FLUTTER_VERSION}');" flutter/lib/src/version.dart

0 comments on commit 7cd8627

Please sign in to comment.