Update release_pipeline.yml

This commit is contained in:
2025-12-26 22:48:24 -06:00
parent 96729c564a
commit 307351a9b5

View File

@@ -54,7 +54,7 @@ concurrency:
defaults: defaults:
run: run:
shell: bash -euxo pipefail shell: bash
permissions: permissions:
contents: read contents: read
@@ -82,7 +82,7 @@ jobs:
RELEASE_CLASSIFICATION: ${{ github.event.inputs.release_classification }} RELEASE_CLASSIFICATION: ${{ github.event.inputs.release_classification }}
RELEASE_PRERELEASE: ${{ github.event.release.prerelease }} RELEASE_PRERELEASE: ${{ github.event.release.prerelease }}
run: | run: |
set -euo pipefail set -euxo pipefail
EVENT_NAME="${GITHUB_EVENT_NAME}" EVENT_NAME="${GITHUB_EVENT_NAME}"
REF_NAME="${GITHUB_REF_NAME}" REF_NAME="${GITHUB_REF_NAME}"
@@ -199,14 +199,14 @@ jobs:
- name: Configure Git identity - name: Configure Git identity
run: | run: |
set -euo pipefail set -euxo pipefail
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git config --global --add safe.directory "${GITHUB_WORKSPACE}" git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Enforce promotion preconditions - name: Enforce promotion preconditions
run: | run: |
set -euo pipefail set -euxo pipefail
SRC="${{ needs.guard.outputs.source_branch }}" SRC="${{ needs.guard.outputs.source_branch }}"
DST="${{ needs.guard.outputs.target_branch }}" DST="${{ needs.guard.outputs.target_branch }}"
@@ -230,7 +230,7 @@ jobs:
- name: Promote and delete source - name: Promote and delete source
run: | run: |
set -euo pipefail set -euxo pipefail
SRC="${{ needs.guard.outputs.source_branch }}" SRC="${{ needs.guard.outputs.source_branch }}"
DST="${{ needs.guard.outputs.target_branch }}" DST="${{ needs.guard.outputs.target_branch }}"
@@ -270,14 +270,14 @@ jobs:
- name: Configure Git identity - name: Configure Git identity
run: | run: |
set -euo pipefail set -euxo pipefail
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git config --global --add safe.directory "${GITHUB_WORKSPACE}" git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Validate repo prerequisites - name: Validate repo prerequisites
run: | run: |
set -euo pipefail set -euxo pipefail
test -d src || (echo "ERROR: src directory missing" && exit 1) test -d src || (echo "ERROR: src directory missing" && exit 1)
test -f CHANGELOG.md || (echo "ERROR: CHANGELOG.md missing" && exit 1) test -f CHANGELOG.md || (echo "ERROR: CHANGELOG.md missing" && exit 1)
@@ -290,7 +290,7 @@ jobs:
- name: Normalize dates using repository script only - name: Normalize dates using repository script only
run: | run: |
set -euo pipefail set -euxo pipefail
TODAY="${{ needs.guard.outputs.today_utc }}" TODAY="${{ needs.guard.outputs.today_utc }}"
VERSION="${{ needs.guard.outputs.version }}" VERSION="${{ needs.guard.outputs.version }}"
@@ -343,7 +343,7 @@ jobs:
- name: Commit normalized dates (if changed) - name: Commit normalized dates (if changed)
run: | run: |
set -euo pipefail set -euxo pipefail
if git diff --quiet; then if git diff --quiet; then
echo "No date changes to commit" >> "${GITHUB_STEP_SUMMARY}" echo "No date changes to commit" >> "${GITHUB_STEP_SUMMARY}"
exit 0 exit 0
@@ -375,14 +375,14 @@ jobs:
- name: Configure Git identity - name: Configure Git identity
run: | run: |
set -euo pipefail set -euxo pipefail
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git config --global --add safe.directory "${GITHUB_WORKSPACE}" git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Run repository validation scripts (Joomla) - name: Run repository validation scripts (Joomla)
run: | run: |
set -euo pipefail set -euxo pipefail
required_scripts=( required_scripts=(
"scripts/validate_manifest.sh" "scripts/validate_manifest.sh"
@@ -421,7 +421,7 @@ jobs:
- name: Build Joomla ZIP (extension type aware) - name: Build Joomla ZIP (extension type aware)
id: build id: build
run: | run: |
set -euo pipefail set -euxo pipefail
VERSION="${{ needs.guard.outputs.version }}" VERSION="${{ needs.guard.outputs.version }}"
REPO="${{ github.event.repository.name }}" REPO="${{ github.event.repository.name }}"
@@ -509,7 +509,7 @@ jobs:
env: env:
IS_PRERELEASE: ${{ github.event.release.prerelease }} IS_PRERELEASE: ${{ github.event.release.prerelease }}
run: | run: |
set -euo pipefail set -euxo pipefail
VERSION="${{ needs.guard.outputs.version }}" VERSION="${{ needs.guard.outputs.version }}"
TAG="${{ github.ref_name }}" TAG="${{ github.ref_name }}"