Skip to content

Style headings to launch servers #2

Style headings to launch servers

Style headings to launch servers #2

Workflow file for this run

name: Sync custom.css to Green Finance AI page
on:
push:
paths:
- "css/custom.css"
jobs:
sync-file:
runs-on: ubuntu-latest
steps:
- name: Checkout source repo
uses: actions/checkout@v3
- name: Copy custom.css to the target repo
env:
PAT_TOKEN: ${{ secrets.SYNC_CSS_GFAI }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Clone the target repository
git clone https://$PAT_TOKEN@github.com/Green-Finance-AI/Green-Finance-AI.git target-repo
# Copy the custom.css file to the target repo
cp css/custom.css target-repo/dark-creative/css/custom.css
cd target-repo
git add dark-creative/css/custom.css
git commit -m "Sync custom.css from Training Platform repo"
git push