1
0

block-merge-freeze.yml 917 B

1234567891011121314151617181920212223242526272829303132
  1. # This workflow is provided via the organization template repository
  2. #
  3. # https://github.com/nextcloud/.github
  4. # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
  5. name: Block merges during freezes
  6. on:
  7. pull_request:
  8. types: [opened, ready_for_review, reopened, synchronize]
  9. permissions:
  10. contents: read
  11. concurrency:
  12. group: block-merge-freeze-${{ github.head_ref || github.run_id }}
  13. cancel-in-progress: true
  14. jobs:
  15. block-merges-during-freeze:
  16. name: Block merges during freezes
  17. if: github.event.pull_request.draft == false
  18. runs-on: ubuntu-latest
  19. steps:
  20. - name: Download version.php from ${{ github.base_ref }}
  21. run: curl https://raw.githubusercontent.com/nextcloud/server/${{ github.base_ref }}/version.php --output version.php
  22. - name: Run check
  23. run: cat version.php | grep 'OC_VersionString' | grep -i -v 'RC'