From 1e9066097c4378c3c063a741f41be7f35deb7e8a Mon Sep 17 00:00:00 2001 From: piotruela Date: Thu, 22 Aug 2024 22:32:00 +0200 Subject: [PATCH] Fix running dart-apitool command --- .github/workflows/patrol-check-semver.yaml | 4 ++-- .github/workflows/patrol-publish.yaml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/patrol-check-semver.yaml b/.github/workflows/patrol-check-semver.yaml index 0048360ea..88f46209a 100644 --- a/.github/workflows/patrol-check-semver.yaml +++ b/.github/workflows/patrol-check-semver.yaml @@ -21,7 +21,6 @@ jobs: id: get_last_released_version run: | last_version=$(git tag --list 'patrol-v*' | grep -v '\-dev\.[0-9]\+$' | sort -V | tail -n 1 | sed 's/^patrol-v//') - echo $last_version echo "last_version=$last_version" >> $GITHUB_ENV echo "::set-output name=last_version::$last_version" @@ -42,7 +41,8 @@ jobs: run: dart pub global activate dart_apitool - name: Check API changes - run: dart-apitool diff \ + run: | + dart-apitool diff \ --old pub://patrol/${{ needs.get_last_released_version.outputs.last_version }} \ --new packages/patrol diff --git a/.github/workflows/patrol-publish.yaml b/.github/workflows/patrol-publish.yaml index d6e097b2f..a29142aea 100644 --- a/.github/workflows/patrol-publish.yaml +++ b/.github/workflows/patrol-publish.yaml @@ -22,6 +22,7 @@ jobs: run: | last_version=$(git tag --list 'patrol-v*' | grep -v '\-dev\.[0-9]\+$' | sort -V | tail -n 1 | sed 's/^patrol-v//') echo "last_version=$last_version" >> $GITHUB_ENV + echo "::set-output name=last_version::$last_version" semver: name: Check API changes @@ -40,7 +41,8 @@ jobs: run: dart pub global activate dart_apitool - name: Check API changes - run: dart-apitool diff \ + run: | + dart-apitool diff \ --old pub://patrol/${{ needs.get_last_released_version.outputs.last_version }} \ --new packages/patrol