block-merge-freeze.yml 663 B

123456789101112131415161718192021
  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: Pull request checks
  6. on: pull_request
  7. jobs:
  8. block-merges-during-freeze:
  9. name: Block merges during feature freezes
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Download version.php from ${{ github.base_ref }}
  13. run: curl https://raw.githubusercontent.com/nextcloud/server/${{ github.base_ref }}/version.php --output version.php
  14. - name: Run check
  15. run: cat version.php | grep 'OC_VersionString' | grep -i -v 'RC'