Sha256: 3789a30705794b589c36559a3ae76accebbf77c3999e5f60cc17111c0d4c3957

Contents?: true

Size: 848 Bytes

Versions: 5

Compression:

Stored size: 848 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/rspec_in_context/version.rb | grep VERSION"
      - name: Print new version
        run: 'git diff main lib/rspec_in_context/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/rspec_in_context/version.rb | grep -E "^\+.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?") > $(git diff main lib/rspec_in_context/version.rb | grep -E "^-.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?") ]]'

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rspec_in_context-1.1.0 .github/workflows/verify_version_change.yml
rspec_in_context-1.0.1.2 .github/workflows/verify_version_change.yml
shotgun_api_ruby-0.0.5.2 .github/workflows/verify_version_change.yml
shotgun_api_ruby-0.0.5.1 .github/workflows/verify_version_change.yml
rspec_in_context-1.0.1.1 .github/workflows/verify_version_change.yml