feat: new slotmap implementation #34
This file contains 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: Auto Format | |
on: | |
push: | |
branches: "main" | |
pull_request: | |
branches: "main" | |
workflow_dispatch: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: format | |
run: ./scripts/format.sh | |
- name: git status | |
run: git status | |
- name: check modifications | |
id: git-check | |
run: echo "modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT | |
- name: commit | |
if: steps.git-check.outputs.modified == 'true' | |
run: | | |
git config user.name "Roboar Formatter" | |
git config user.email "[email protected]" | |
git add src | |
git commit -m "Auto: Format script" | |
git push origin main | |