chore: simplify sync workflow for boostlook.css

This commit is contained in:
Julio Estrada
2025-04-10 17:08:16 -04:00
committed by Julio C. Estrada
parent e130dc047b
commit e0ecfc91c5

View File

@@ -2,10 +2,9 @@ name: Sync boostlook.css to website-v2 & website-v2-docs
on:
push:
branches: ["master", "develop"]
branches: ["develop"]
paths:
- "boostlook.css"
- "boostlook_tino.css"
workflow_dispatch:
permissions:
@@ -34,13 +33,7 @@ jobs:
- name: Copy boostlook.css to website-v2
run: |
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
cp -v boostlook.css website-v2/static/css/boostlook.css
- name: Install pre-commit
if: success()
run: |
@@ -66,11 +59,11 @@ jobs:
echo "No changes to commit. Skipping commit to develop."
fi
- name: Trigger website-v2-docs ui-release workflow
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') && github.event_name == 'push' }}
if: success()
env:
GH_TOKEN: ${{ secrets.WEBSITE_V2_PAT }}
run: |
gh workflow run ui-release.yml --repo boostorg/website-v2-docs --ref develop -f boostlook_branch=${{ github.ref_name }}
gh workflow run ui-release.yml --repo boostorg/website-v2-docs --ref develop
- name: Trigger website-v2-docs publish workflow
if: success()
env: