Skip to content

Commit

Permalink
add current check
Browse files Browse the repository at this point in the history
  • Loading branch information
brim-borium committed Nov 1, 2023
1 parent f575e70 commit 9037fe2
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/nightly_flutter_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ jobs:
- name: Compare versions
id: compare-versions
run: |
echo current tag: ${{ steps.get-versions.outputs.CURRENT_TAG }}
echo latest tag: ${{ steps.get-versions.outputs.LATEST_TAG }}
uses: madhead/semver-utils@latest
with:
# A version to work with
version: ${{ steps.get-versions.outputs.CURRENT_TAG }}
# A version to compare against
compare-to: ${{ steps.get-versions.outputs.LATEST_TAG }}

- name: Create pull request if necessary
if: ${{ steps.compare-versions.outputs.is-lower == 'True' }}
run: echo current flutter version is higher
#if: ${{ steps.version.outputs.comparison-result == "<" }}
run: |
echo "Current tag is ${{ steps.get-versions.outputs.CURRENT_TAG }}"
echo "Latest tag is ${{ steps.get-versions.outputs.LATEST_TAG }}"
echo "${{ steps.version.outputs.comparison-result }}"

0 comments on commit 9037fe2

Please sign in to comment.