feat: add git ssh config #9
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: Update Generated Notes | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - assets/js/config.js | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-config: | |
| if: github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Normalize markdown emoji | |
| run: python scripts/emoji4md.py --all | |
| - name: Regenerate config.js | |
| run: python scripts/update_notes.py | |
| - name: Commit generated note updates | |
| shell: bash | |
| run: | | |
| if git diff --quiet; then | |
| echo "Generated note files are already up to date" | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add -A | |
| git commit -m "chore: refresh generated note assets" | |
| git push |