Skip to content

Commit

Permalink
Merge pull request #10 from Alvish0407/main
Browse files Browse the repository at this point in the history
 fixed: The set-output command is deprecated and will be disabled soon.
  • Loading branch information
NiklasLehnfeld authored Nov 25, 2024
2 parents 26b0103 + 8608f5c commit dcac2cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: flutter-version-number
description: 'Reads the version number of the pubspec.yaml'
description: "Reads the version number of the pubspec.yaml"
author: NiklasLehnfeld
branding:
icon: 'archive'
color: 'green'
icon: "archive"
color: "green"
inputs:
file-path:
description: "Path to your pubspec.yaml. Default is ./pubspec.yaml"
Expand All @@ -19,5 +19,5 @@ runs:
- id: read-yaml
run: |
VERSION=`cat ${{inputs.file-path}} | grep -m 1 -o 'version:[^:]*' | cut -f2 -d":" | xargs`
echo "::set-output name=version::$(echo $VERSION)"
echo "version=$VERSION" >> $GITHUB_OUTPUT
shell: bash

0 comments on commit dcac2cc

Please sign in to comment.