Skip to content

Commit

Permalink
Fix running dart-apitool command
Browse files Browse the repository at this point in the history
  • Loading branch information
piotruela committed Aug 22, 2024
1 parent 79edab1 commit 1e90660
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/patrol-check-semver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/patrol-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1e90660

Please sign in to comment.