Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

block-merge-freeze.yml 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  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. #
  6. # SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
  7. # SPDX-License-Identifier: MIT
  8. name: Block merges during freezes
  9. on:
  10. pull_request:
  11. types: [opened, ready_for_review, reopened, synchronize]
  12. permissions:
  13. contents: read
  14. concurrency:
  15. group: block-merge-freeze-${{ github.head_ref || github.run_id }}
  16. cancel-in-progress: true
  17. jobs:
  18. block-merges-during-freeze:
  19. name: Block merges during freezes
  20. if: github.event.pull_request.draft == false
  21. runs-on: ubuntu-latest-low
  22. steps:
  23. - name: Download version.php from ${{ github.base_ref }}
  24. run: curl https://raw.githubusercontent.com/nextcloud/server/${{ github.base_ref }}/version.php --output version.php
  25. - name: Run check
  26. run: cat version.php | grep 'OC_VersionString' | grep -i -v 'RC'