Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveKeehl committed Apr 7, 2024
1 parent dc84f65 commit c8ab22f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Release

on: [push]

env:
OLD_VERSION: 1.0.4
NEW_VERSION: 1.0.5

jobs:
check-version:
runs-on: ubuntu-latest
Expand All @@ -27,15 +31,15 @@ jobs:
uses: madhead/semver-utils@latest
id: version
with:
version: ${{ steps.latest-version.outputs.tag }}
compare-to: ${{ steps.package-version.outputs.current-version }}
version: ${{ env.OLD_VERSION }}
compare-to: ${{ env.NEW_VERSION }}

- name: Check for new version
if: ${{ steps.version.outputs.comparison-result != '>' }}
uses: actions/github-script@v3
with:
script: |
core.setFailed('The last version (${{ steps.package-version.outputs.current-version }}) and the current version (${{ steps.latest-version.outputs.tag }}) are the same')
core.setFailed('The last version (${{ env.OLD_VERSION }}) and the current version (${{ env.NEW_VERSION }}) are the same')
release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c8ab22f

Please sign in to comment.