You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2025/05/17 17:16:44 UTC

(grails-core) branch 7.0.x updated: Add concurrency limits to other common workflows and remove retry release workflow

This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new 84fb720ad5 Add concurrency limits to other common workflows and remove retry release workflow
84fb720ad5 is described below

commit 84fb720ad5f57362e06c82b343d32140ec6b71ed
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Sat May 17 13:16:30 2025 -0400

    Add concurrency limits to other common workflows and remove retry release workflow
---
 .github/workflows/codeql.yml                |   5 +-
 .github/workflows/groovy-joint-workflow.yml |   4 ++
 .github/workflows/rat.yml                   |   4 ++
 .github/workflows/release-notes.yml         |   4 ++
 .github/workflows/retry-release.yml         | 108 ----------------------------
 5 files changed, 16 insertions(+), 109 deletions(-)

diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 96312d71ea..6689c840ab 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -34,7 +34,10 @@ on:
     # The branches below must be a subset of the branches above
     branches:
       - '[4-9]+.[0-9]+.x'
-    
+# queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: false
 jobs:
   analyze:
     name: Analyze
diff --git a/.github/workflows/groovy-joint-workflow.yml b/.github/workflows/groovy-joint-workflow.yml
index 9cfee4f032..0c30fe75c8 100644
--- a/.github/workflows/groovy-joint-workflow.yml
+++ b/.github/workflows/groovy-joint-workflow.yml
@@ -22,6 +22,10 @@ on:
     branches:
       - '[4-9]+.[0-9]+.x'
   workflow_dispatch:
+# queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: false
 permissions:
   contents: read
 jobs:
diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml
index db9e228253..041bf8e2be 100644
--- a/.github/workflows/rat.yml
+++ b/.github/workflows/rat.yml
@@ -26,6 +26,10 @@ on:
       - '[3-9]+.[3-9]+.x'
       - license-audit
   workflow_dispatch:
+# queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: false
 jobs:
   rat-audit:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml
index 1873e635cf..3aa5b179e8 100644
--- a/.github/workflows/release-notes.yml
+++ b/.github/workflows/release-notes.yml
@@ -27,6 +27,10 @@ on:
   pull_request_target:
     types: [opened, reopened, synchronize, labeled]
   workflow_dispatch:
+# queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: false
 jobs:
   update_release_draft:
     permissions:
diff --git a/.github/workflows/retry-release.yml b/.github/workflows/retry-release.yml
deleted file mode 100644
index c6bee14bb0..0000000000
--- a/.github/workflows/retry-release.yml
+++ /dev/null
@@ -1,108 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-name: "Retry Release"
-on:
-  workflow_dispatch:
-    inputs:
-      release:
-        description: The Grails Release (e.g. 5.0.3)
-        required: true
-      target_branch:
-        description: The Target Branch (e.g. 5.0.x)
-        required: true
-permissions: {}
-jobs:
-  release:
-    permissions:
-      contents: write  #  to create release
-      issues: read  #  to get closed issues
-    runs-on: ubuntu-latest
-    env:
-      GIT_USER_NAME: 'grails-build'
-      GIT_USER_EMAIL: 'grails-build@users.noreply.github.com'
-    steps:
-      - name: "📥 Checkout repository"
-        uses: actions/checkout@v4
-        with:
-          ref: "v${{ github.event.inputs.release }}"
-          token: ${{ secrets.GH_TOKEN }}
-      - name: "☕️ Setup JDK"
-        uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
-        with:
-          distribution: liberica
-          java-version: 17
-      - name: "🐘 Setup Gradle"
-        uses: gradle/actions/setup-gradle@v4
-        with:
-          develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY  }}
-      - name: "📝 Store the target branch"
-        id: extract_branch
-        run: |
-          echo $TARGET_BRANCH
-          echo "value=${TARGET_BRANCH}" >> $GITHUB_OUTPUT
-        env:
-          TARGET_BRANCH: ${{ github.event.inputs.target_branch }}
-      - name: "📝 Store the current release version"
-        id: release_version
-        run: echo "release_version=${VERSION}" >> $GITHUB_OUTPUT
-        env:
-          VERSION: ${{ github.event.inputs.release }}
-      - name: "🧩 Run Assemble"
-        id: assemble
-        run: ./gradlew assemble
-      - name: "📤 Upload artifacts to the Github release"
-        id: upload_artifact
-        if: steps.assemble.outcome == 'success'
-        env:
-          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-        run: >
-          gh release upload v${{ github.event.inputs.release }}
-          build/distributions/grails-${{ steps.release_version.outputs.release_version }}.zip
-      - name: "📝 Create Message for the Grails Documentation Release"
-        if: steps.assemble.outcome == 'success'
-        id: grails_docs_release_message
-        run: |
-          echo "value::{\"grails_version\":\"$RELEASE_VERSION\"}" >> $GITHUB_OUTPUT
-        env:
-          RELEASE_VERSION: ${{ steps.release_version.outputs.release_version }}
-      - name: "📡 Invoke grails-doc release workflow"
-        if: steps.assemble.outcome == 'success'
-        id: grails_doc
-        uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action)
-        with:
-          workflow: Release
-          repo: apache/grails-doc
-          ref: ${{ steps.extract_branch.outputs.value }}
-          token: ${{ secrets.GH_TOKEN }}
-          inputs: ${{ steps.grails_docs_release_message.outputs.value }}
-      - name: "📡 Invoke grails-static-website release workflow"
-        if: steps.assemble.outcome == 'success'
-        id: grails_static_website
-        uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action)
-        with:
-          workflow: Release
-          repo: apache/grails-static-website
-          ref: master
-          token: ${{ secrets.GH_TOKEN }}
-          inputs: ${{ steps.grails_docs_release_message.outputs.value }}
-      - name: "⚙️ Run post-release"
-        if: steps.assemble.outcome == 'success'
-        uses: ./.github/actions/post-release
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-        env:
-          TARGET_BRANCH: ${{ github.event.inputs.target_branch }}
-          RELEASE_VERSION: ${{ github.event.inputs.release }}
\ No newline at end of file