Skip to content

rpiambulance/action-pr-version-check

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PR Version Check Github Action

Checks if the version field in a given JSON file has been incremented compared to master. Principally for checking on PRs to be merged into master.

Usage:

name: "Check for version update in PR to Master"

on:
  pull_request:
    # Sequence of patterns matched against refs/heads
    branches:    
    - master

jobs:
  master-pr-check-version:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Check if version changed
      uses: rpiambulance/action-pr-version-check
      with:
        file: package.json # optional, defaults to "package.json"