aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/block-merge-eol.yml
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-06-01 18:09:13 +0200
committerJoas Schilling <coding@schilljs.com>2023-06-02 00:26:03 +0200
commit5f8fefcfc21f4b793f93c72495d7eb9f3b902e1b (patch)
treef0532ff35d9ba4835c8bc617b09898b90cee5734 /.github/workflows/block-merge-eol.yml
parent07dee9788a459e704a3d5d8d64049cad91f877e7 (diff)
downloadnextcloud-server-5f8fefcfc21f4b793f93c72495d7eb9f3b902e1b.tar.gz
nextcloud-server-5f8fefcfc21f4b793f93c72495d7eb9f3b902e1b.zip
chore: update workflows from templates
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to '.github/workflows/block-merge-eol.yml')
-rw-r--r--.github/workflows/block-merge-eol.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/block-merge-eol.yml b/.github/workflows/block-merge-eol.yml
index a24acea15a0..8c7653eac9e 100644
--- a/.github/workflows/block-merge-eol.yml
+++ b/.github/workflows/block-merge-eol.yml
@@ -3,10 +3,17 @@
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
-name: Pull request checks
+name: Block merges for EOL
on: pull_request
+permissions:
+ contents: read
+
+concurrency:
+ group: block-merge-eol-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
block-merges-eol:
name: Block merges for EOL branches
@@ -24,7 +31,7 @@ jobs:
# retrieve version number from branch reference
server_major=$(echo "${{ github.base_ref }}" | sed -En 's/stable//p')
echo "server_major=$server_major" >> $GITHUB_ENV
-
+
- name: Checking if ${{ env.server_major }} is EOL
run: |
- php -r 'echo json_encode(require_once "config.php");' | jq --arg version "${{ env.server_major }}" '.stable[$version]["100"].eol' | grep --silent -i 'false'
+ php -r 'echo json_encode(require_once "config.php");' | jq --arg version "${{ env.server_major }}" '.stable[$version]["100"].eol // .beta[$version]["100"].eol' | grep --silent -i 'false'