From e8d78162d200ebc6e22b1b07c086845738b7b1d6 Mon Sep 17 00:00:00 2001 From: Niklas Lehnfeld Date: Fri, 10 Sep 2021 00:13:32 +0200 Subject: [PATCH] Use published version of flutter-version-number-action --- .github/actions/flutter-version-number/action.yaml | 14 -------------- .github/workflows/main.yaml | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 .github/actions/flutter-version-number/action.yaml diff --git a/.github/actions/flutter-version-number/action.yaml b/.github/actions/flutter-version-number/action.yaml deleted file mode 100644 index 1d2b31e..0000000 --- a/.github/actions/flutter-version-number/action.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: flutter-version-number -description: 'Reads the version number of the pubspec.yaml' -outputs: - version-number: - description: "Version number" - value: ${{ steps.read-yaml.outputs.version }} -runs: - using: "composite" - steps: - - id: read-yaml - run: | - VERSION=`cat pubspec.yaml | grep -o 'version:[^:]*' | cut -f2 -d":" | xargs` - echo "::set-output name=version::$(echo $VERSION)" - shell: bash diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 81ce10a..f3627de 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -51,7 +51,7 @@ jobs: with: name: release-build - id: version - uses: ./.github/actions/flutter-version-number + uses: NiklasLehnfeld/flutter-version-number-action@v1 - uses: marvinpinto/action-automatic-releases@latest with: repo_token: ${{ secrets.GITHUB_TOKEN }}