summaryrefslogtreecommitdiffstats
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
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-06-08 13:06:36 +0200
commit52d39183c5fe6082baa9d3474adfb894e5c33e60 (patch)
tree775462501143edb96578cf56e2806eb7c4a77196 /.github/workflows/block-merge-eol.yml
parentf68b8015000a50249e0e6e4334033359486338d9 (diff)
downloadnextcloud-server-52d39183c5fe6082baa9d3474adfb894e5c33e60.tar.gz
nextcloud-server-52d39183c5fe6082baa9d3474adfb894e5c33e60.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'