Skip to content

Commit

Permalink
Set fetch depth to get tags
Browse files Browse the repository at this point in the history
  • Loading branch information
piotruela committed Aug 22, 2024
1 parent 64df4ba commit f3f4907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/patrol-check-semver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get last released version
id: get_last_released_version
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/patrol-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get last released version
id: get_last_released_version
Expand All @@ -38,8 +40,8 @@ jobs:
run: dart pub global activate dart_apitool

- name: Check API changes
run: dart pub global run dart_apitool compare \
--old ${{ needs.get_last_released_version.outputs.last_version }} \
run: dart-apitool diff \
--old pub://patrol/${{ needs.get_last_released_version.outputs.last_version }} \
--new packages/patrol

publish:
Expand Down

0 comments on commit f3f4907

Please sign in to comment.