This is an automated email from the ASF dual-hosted git repository.
ppkarwasz pushed a commit to branch 2.26.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.26.x by this push:
new d56c78d4a7 Remove workflows that are unused on `2.26.x` (#4288)
d56c78d4a7 is described below
commit d56c78d4a779ab3b02566c27cceecb123ae4db1e
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Thu Sep 3 13:44:24 2026 +0200
Remove workflows that are unused on `2.26.x` (#4288)
GitHub only evaluates `schedule`, `issues`, `issue_comment` and
`workflow_run` triggers on the default branch, so the copies of
`close-stale`, `labeler` and `process-dependabot` on this branch never
ran. The `deploy-site` workflow now only stages the website for
`release/2.26.*` branches; the staging site for `2.x` and the
production site are deployed from the default branch.
Assisted-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014QXFCr2hQv3zoVf7wo5Lab
---
.github/workflows/analyze-dependabot.yaml | 3 ++
.github/workflows/close-stale.yaml | 42 -------------------
.github/workflows/deploy-site.yaml | 46 ++-------------------
.github/workflows/labeler.yaml | 69 -------------------------------
.github/workflows/process-dependabot.yaml | 48 ---------------------
5 files changed, 7 insertions(+), 201 deletions(-)
diff --git a/.github/workflows/analyze-dependabot.yaml
b/.github/workflows/analyze-dependabot.yaml
index cd991d3637..92dae2a0b0 100644
--- a/.github/workflows/analyze-dependabot.yaml
+++ b/.github/workflows/analyze-dependabot.yaml
@@ -18,6 +18,9 @@
name: "Dependabot Analyze PR"
on:
+ # `pull_request` runs the workflow file from the PR merge commit, so this
copy applies to PRs against this branch.
+ # The follow-up "Dependabot Process PR" workflow is triggered by
`workflow_run`, which GitHub only evaluates
+ # on the default branch, so it does not need a copy here.
pull_request:
# Default permissions for each job.
diff --git a/.github/workflows/close-stale.yaml
b/.github/workflows/close-stale.yaml
deleted file mode 100644
index 5978d1aac5..0000000000
--- a/.github/workflows/close-stale.yaml
+++ /dev/null
@@ -1,42 +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
-#
-# http://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: 'Close stale issues'
-on:
- schedule:
- - cron: '30 1 * * *'
- workflow_dispatch:
-
-permissions:
- issues: write
-
-jobs:
- stale:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 #
v9.1.0
- with:
- # Labels need to match with the ones in `labeler.yaml`!
- only-labels: waiting-for-user
- days-before-stale: 60
- days-before-close: 7
- stale-issue-message: >
- This issue is stale because it has been waiting for your feedback
for more than 60 days.
- The Apache Logging Services community values every submitted
issue, but without additional information from you,
- we are unable to provide a solution to your problem.
-
- Please comment on this issue or it will be closed in 7 days.
diff --git a/.github/workflows/deploy-site.yaml
b/.github/workflows/deploy-site.yaml
index 59aba57c8f..d87a7ca5bf 100644
--- a/.github/workflows/deploy-site.yaml
+++ b/.github/workflows/deploy-site.yaml
@@ -19,55 +19,17 @@ name: deploy-site
on:
push:
+ # A minor version branch only stages the website for its own release
branches.
+ # The staging site for `2.x` and the production site (from `2.x-site-pro`)
are deployed by the workflow on `2.x`.
branches:
- - "2.x"
- - "2.x-site-pro"
- - "release/2*"
- paths-ignore:
- - "**.md"
- - "**.txt"
+ - "release/2.26.*"
permissions: read-all
jobs:
- deploy-site-stg:
- if: github.repository == 'apache/logging-log4j2' && github.ref_name ==
'2.x'
- uses:
apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@gha/v0
- # Secrets for committing the generated site
- secrets:
- GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
- # Write permissions for committing the generated site
- permissions:
- contents: write
- with:
- asf-yaml-content: |
- staging:
- profile: ~
- whoami: ${{ github.ref_name }}-site-stg-out
- subdir: content/log4j/2.x
- install-required: true
- target-branch: ${{ github.ref_name }}-site-stg-out
-
- deploy-site-pro:
- if: github.repository == 'apache/logging-log4j2' && github.ref_name ==
'2.x-site-pro'
- uses:
apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@gha/v0
- # Secrets for committing the generated site
- secrets:
- GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
- # Write permissions for committing the generated site
- permissions:
- contents: write
- with:
- asf-yaml-content: |
- publish:
- whoami: ${{ github.ref_name }}-out
- subdir: content/log4j/2.x
- install-required: true
- target-branch: ${{ github.ref_name }}-out
-
export-version:
- if: github.repository == 'apache/logging-log4j2' &&
startsWith(github.ref_name, 'release/')
+ if: github.repository == 'apache/logging-log4j2'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.export-version.outputs.version }}
diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml
deleted file mode 100644
index 141ad42a55..0000000000
--- a/.github/workflows/labeler.yaml
+++ /dev/null
@@ -1,69 +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
-#
-# http://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: 'Check labels'
-on:
- issue_comment:
- types: [created]
- issues:
- types: [opened]
-env:
- issue_user_type: >-
- ${{
- contains(fromJSON('["COLLABORATOR","CONTRIBUTOR","MEMBER","OWNER"]'),
github.event.issue.author_association) && 'maintainer' || 'user'
- }}
- comment_user_type: >-
- ${{
- github.event_name == 'issue_comment' &&
- (
- contains(fromJSON('["COLLABORATOR","CONTRIBUTOR","MEMBER","OWNER"]'),
github.event.comment.author_association) && 'maintainer' || 'user'
- ) || null
- }}
-
-permissions:
- issues: write
-
-jobs:
- check-labels:
- # Prevents the job from running on pull requests
- if: ${{ ! github.event.issue.pull_request }}
- runs-on: ubuntu-latest
-
- steps:
-
- - name: Print user type
- env:
- ISSUE_AUTHOR: ${{ github.event.issue.author_association }}
- COMMENT_AUTHOR: ${{ github.event.comment.author_association }}
- EVENT_NAME: ${{ github.event_name }}
- ISSUE_USER_TYPE: ${{ env.issue_user_type }}
- COMMENT_USER_TYPE: ${{ env.comment_user_type }}
- run: |
- echo "Event name:" $EVENT_NAME
- echo "Issue created by:" $ISSUE_USER_TYPE
- echo "Issue author association:" $ISSUE_AUTHOR
- echo "Comment created by:" $COMMENT_USER_TYPE
- echo "Comment author association:" $COMMENT_AUTHOR
-
- # The `waiting-for-maintainer` label needs to match with the one in
`close-stale.yaml`!
- - name: Add `waiting-for-maintainer` label
- if: github.event_name == 'issues' && env.issue_user_type == 'user' ||
env.comment_user_type == 'user'
- env:
- ISSUE: ${{ github.event.issue.html_url }}
- GH_TOKEN: ${{ github.token }}
- run: |
- gh issue edit $ISSUE --add-label 'waiting-for-maintainer'
--remove-label 'waiting-for-user'
diff --git a/.github/workflows/process-dependabot.yaml
b/.github/workflows/process-dependabot.yaml
deleted file mode 100644
index d67dfbdebd..0000000000
--- a/.github/workflows/process-dependabot.yaml
+++ /dev/null
@@ -1,48 +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
-#
-# http://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: "Dependabot Process PR"
-
-on:
- workflow_run:
- workflows:
- - "Dependabot Analyze PR"
- types:
- - completed
-
-# Default permissions for each job.
-# Additional permissions should be assigned on a per-job basis.
-permissions: { }
-
-jobs:
-
- process-dependabot:
- # Skip this workflow on commits not pushed by Dependabot
- if: ${{
- github.repository == 'apache/logging-log4j2'
- && github.actor == 'dependabot[bot]'
- && github.event.workflow_run.conclusion == 'success'
- }}
- uses:
apache/logging-parent/.github/workflows/process-dependabot-reusable.yaml@gha/v0
- permissions:
- # Append the changelog commit
- contents: write
- # Convert the PR into draft
- pull-requests: write
- with:
- # The path to the changelog directory for the current development branch.
- changelog-path: src/changelog/.2.x.x