mirror of
https://github.com/boostorg/boostlook.git
synced 2026-01-19 04:02:14 +00:00
gha: enhance CSS sync workflow with branch support
This commit improves the boostlook CSS sync workflow: - add support for the develop branch - include boostlook_tino.css in trigger paths - implement conditional file copying based on branch - restrict ui-release trigger to push events only - pass branch name as parameter to downstream workflows
This commit is contained in:
committed by
Julio C. Estrada
parent
538540cdc9
commit
473cd45074
15
.github/workflows/sync-boostlook-css.yml
vendored
15
.github/workflows/sync-boostlook-css.yml
vendored
@@ -2,9 +2,10 @@ name: Sync boostlook.css to website-v2 & website-v2-docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
branches: ["master", "develop"]
|
||||
paths:
|
||||
- "boostlook.css"
|
||||
- "boostlook_tino.css"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -33,7 +34,13 @@ jobs:
|
||||
|
||||
- name: Copy boostlook.css to website-v2
|
||||
run: |
|
||||
cp -v boostlook.css website-v2/static/css/boostlook.css
|
||||
if [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
|
||||
echo "Copying boostlook_tino.css and renaming to boostlook.css"
|
||||
cp -v boostlook_tino.css website-v2/static/css/boostlook.css
|
||||
else
|
||||
echo "Copying boostlook.css"
|
||||
cp -v boostlook.css website-v2/static/css/boostlook.css
|
||||
fi
|
||||
- name: Install pre-commit
|
||||
if: success()
|
||||
run: |
|
||||
@@ -59,11 +66,11 @@ jobs:
|
||||
echo "No changes to commit. Skipping commit to develop."
|
||||
fi
|
||||
- name: Trigger website-v2-docs ui-release workflow
|
||||
if: success()
|
||||
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') && github.event_name == 'push' }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.WEBSITE_V2_PAT }}
|
||||
run: |
|
||||
gh workflow run ui-release.yml --repo boostorg/website-v2-docs --ref develop
|
||||
gh workflow run ui-release.yml --repo boostorg/website-v2-docs --ref develop -f boostlook_branch=${{ github.ref_name }}
|
||||
- name: Trigger website-v2-docs publish workflow
|
||||
if: success()
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user