Fix GitLab commit email URL in .gitconfig-gitlab #7
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 README with Config Files | |
| on: | |
| push: | |
| paths: | |
| - '.gitconfig.example' | |
| - '.gitconfig-github' | |
| - '.gitconfig-gitlab' | |
| - '.github/workflows/update-readme.yml' | |
| - 'scripts/update-readme.py' | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Update README with config file contents | |
| run: python3 scripts/update-readme.py | |
| - name: Commit changes | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add README.md | |
| git diff --quiet && git diff --staged --quiet || (git commit -m "docs: update README with config file contents" && git push) |