Bump path-to-regexp and express #92
Workflow file for this run
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: check-version-bump | |
on: | |
pull_request: | |
jobs: | |
check-version-bump: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check if version has been updated | |
id: check | |
uses: EndBug/version-check@v2 | |
with: | |
file-url: 'https://raw.githubusercontent.com/opensearch-project/automation-app/refs/heads/${{ github.event.pull_request.base.ref }}/package.json' | |
static-checking: localIsNew | |
- name: Log when changed | |
if: steps.check.outputs.changed == 'true' | |
run: 'echo "Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"' | |
- name: Log when unchanged | |
if: steps.check.outputs.changed == 'false' | |
run: 'echo "No version change! Please bump the version in package.json!" && exit 1' |