Goponents release v1.16.1 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!') |