Style headings to launch servers #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |