Sha256: fbb810ff6ec406b062dedba23a145f1cbf4fa7812734f827b6c9cc8f28440e0e
Contents?: true
Size: 852 Bytes
Versions: 2
Compression:
Stored size: 852 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/omniauth_forge/version.rb | grep VERSION" - name: Print new version run: 'git diff main -- lib/omniauth_forge/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/omniauth_forge/version.rb | grep -E "^\+.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?") > $(git diff main -- lib/omniauth_forge/version.rb | grep -E "^-.*VERSION" | grep -E -o "[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?") ]]'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-forge-0.2.1 | .github/workflows/verify_version_change.yml |
omniauth-forge-0.2.0 | .github/workflows/verify_version_change.yml |