Skip to content

Commit 0467765

Browse files
author
Sophia Marie Terry
committed
Correct directory + time save on version fetch
1 parent d149ddd commit 0467765

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ipa-changelog.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jobs:
2121
current_version=$(jq '.version' package.json)
2222
echo "Current version: $current_version"
2323
24-
git fetch origin ${{ github.event.pull_request.base.ref }}
25-
git checkout ${{ github.event.pull_request.base.ref }}
26-
previous_version=$(jq -r '.version' package.json)
24+
previous_version=$(git show origin/${{ github.event.pull_request.base.ref }}:tools/spectral/ipa/package.json | jq -r '.version')
2725
2826
if [[ -z "$previous_version" || "$previous_version" == "null" ]]; then
2927
previous_version="none"
@@ -32,6 +30,7 @@ jobs:
3230

3331
version_bump=$([[ "$previous_version" != "v$current_version" ]] && echo "true" || echo "false")
3432
- name: Check Changelog
33+
working-directory: tools/spectral/ipa
3534
env:
3635
NEW_VERSION: ${{ steps.version_check.outputs.version_bump }}
3736
run: |

0 commit comments

Comments
 (0)