Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Update version retrieval in pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cxmeel committed Mar 14, 2024
1 parent 352db48 commit b533be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:

- name: Fetch version from package.json
id: current-version
run: jq -r '.version' package.json >> $GITHUB_ENV
run: echo "current-version=$(jq -r .version package.json)" >> $GITHUB_ENV

- name: Get previous release version
id: previous-version
run: git describe --tags --abbrev=0 >> $GITHUB_ENV
run: echo "previous-version=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

- name: Ensure version has changed
run: ${{ steps.current-version.outputs.current-version != steps.previous-version.outputs.previous-version }}
Expand Down

0 comments on commit b533be6

Please sign in to comment.