diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml new file mode 100644 index 000000000..dcfef4926 --- /dev/null +++ b/.github/workflows/version.yml @@ -0,0 +1,28 @@ +name: version + +on: + pull_request: + paths: + - 'VERSION.txt' + +jobs: + compare-versions: + runs-on: ubuntu-latest + steps: + - name: Check out base branch + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.base.ref }} + - name: Get old version + run: | + echo 'old_version="$(head -1 VERSION.txt)"' >> $GITHUB_ENV + echo "Old version: $old_version" + + - name: Check out head branch + uses: actions/checkout@v3 + - name: Get new version + run: | + echo 'new_version="$(head -1 VERSION.txt)"' >> $GITHUB_ENV + echo "New version: $new_version" + - name: Compare versions + run: dpkg --compare-versions "${{ env.old_version }}" lt "${{ env.new_version }}" diff --git a/VERSION.txt b/VERSION.txt index b8aacd3fb..6ba3ede19 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.6.0.dev +0.6.1.dev