Skip to content

remove useless

remove useless #27

Workflow file for this run

name: Build and release
on:
push:
jobs:
check-version:
name: Check if the version has been updated
outputs:
has_changed: ${{ steps.compare.outputs.has_changed }}
version: ${{ steps.parse-versions.outputs.curr_version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- id: parse-versions
run: |
PREV_VERSION=$(git show HEAD^:VERSION)
CURR_VERSION=$(git show HEAD:VERSION)
echo "prev_version=${PREV_VERSION}" >> $GITHUB_OUTPUT
echo "curr_version=${CURR_VERSION}" >> $GITHUB_OUTPUT
shell: bash
- uses: aica-technology/.github/.github/actions/compare-versions@feature/semver
id: compare
with:
new_version: ${{ steps.parse-versions.outputs.curr_version }}
previous_version: ${{ steps.parse-versions.outputs.prev_version }}