Skip to content

Goponents release v1.16.1 #17

Goponents release v1.16.1

Goponents release v1.16.1 #17

Workflow file for this run

name: Version Check
on:
pull_request:
branches:
- main
concurrency:
group: version_check_${{ github.head_ref }}
cancel-in-progress: true
jobs:
checkVersion:
name: Validate New Version
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
with:
ref: main
- name: Get Current Package Version
id: package-version-current
uses: martinbeentjes/npm-get-version-action@master
with:
path: projects/go-lib
- uses: actions/checkout@v2
- name: Get New Package Version
id: package-version-new
uses: martinbeentjes/npm-get-version-action@master
with:
path: projects/go-lib
- name: Ensure New Version
if: steps.package-version-current.outputs.current-version == steps.package-version-new.outputs.current-version
uses: actions/github-script@v3
with:
script: core.setFailed('Package version has not be incremented!')