Sha256: 82e86f2e526b5d54056712e1c3f201beba7d4a51b3657ae6319d245eedd339d1
Contents?: true
Size: 864 Bytes
Versions: 9
Compression:
Stored size: 864 Bytes
Contents
name: Verify version change on: pull_request: branches: - main jobs: version_change: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Fetch main branch run: git fetch origin main:main - name: Verify if there's a change in version run: 'git diff main -- lib/shotgrid_api_ruby/version.rb | grep VERSION' - name: Print new version run: 'git diff main -- lib/shotgrid_api_ruby/version.rb | grep -E "^\+.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?"' - name: Verify if higher version run: '[[ $(git diff main -- lib/shotgrid_api_ruby/version.rb | grep -E "^\+.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?") > $(git diff main -- lib/shotgrid_api_ruby/version.rb | grep -E "^-.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?") ]]'
Version data entries
9 entries across 9 versions & 1 rubygems