Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,45 @@ name: Post-Merge CI Pipeline

on: # yamllint disable-line rule:truthy
push:
branches: ['main', 'release-[0-9]+.[0-9]+.*']
branches: ['main', 'release-*']
workflow_dispatch:

permissions:
contents: read

jobs:
pre-checks:
permissions:
contents: read
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.branch_check.outputs.skip }}
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Validate branch name
id: branch_check
run: |
BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
echo "Branch: $BRANCH"

if [[ "$BRANCH" == release-* ]]; then
if [[ "$BRANCH" =~ ^release-[0-9]+\.[0-9]+(\.[0-9]+)?$ ]]; then
echo "✅ Valid release branch"
echo "skip=false" >> $GITHUB_OUTPUT
else
echo "⚠️ Invalid release branch → skipping pipeline"
echo "skip=true" >> $GITHUB_OUTPUT
fi
else
echo "Not a release branch"
echo "skip=false" >> $GITHUB_OUTPUT
fi
- name: "Verify Branch Name"
if: steps.branch_check.outputs.skip != 'true'
uses: open-edge-platform/orch-ci/verify-branch-name@bf82f7924caaac6ba2f388b6ec6ac4edd65f48ee # yamllint disable-line rule:line-length

post-merge-pipeline:
permissions:
contents: read
Expand All @@ -37,6 +69,8 @@ jobs:
contents: read
pull-requests: read
issues: write
needs: pre-checks
if: needs.pre-checks.outputs.skip != 'true'
uses: open-edge-platform/orch-ci/.github/workflows/publish-documentation.yml@bf82f7924caaac6ba2f388b6ec6ac4edd65f48ee # yamllint disable-line rule:line-length
with:
simple_mode: false
Expand Down
Loading