Sha256: f52ff0328d3e9185336c81d96b3819247fa948c154b672924d12043bca28bd74
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
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/shotgun_api_ruby/version.rb | grep VERSION" - name: Print new version run: 'git diff main lib/shotgun_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/shotgun_api_ruby/version.rb | grep -E "^\+.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?") > $(git diff main lib/shotgun_api_ruby/version.rb | grep -E "^-.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?") ]]' - name: Verify if version is updated in Gemfile.lock run: '[[ $(cat Gemfile.lock | grep "$(git diff main lib/shotgun_api_ruby/version.rb | grep -E "^\+.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?")") ]]'
Version data entries
3 entries across 3 versions & 1 rubygems