Skip to content

feat: add astar web placeholders #17

feat: add astar web placeholders

feat: add astar web placeholders #17

Workflow file for this run

name: Auto Format Code
permissions:
pull-requests: write
contents: read
on:
pull_request:
workflow_dispatch:
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
- name: Format Code
run: dotnet format --verify-no-changes --verbosity diag
- name: Check for changes
id: changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "modified=true" >> $GITHUB_OUTPUT
else
echo "modified=false" >> $GITHUB_OUTPUT
fi
- name: Commit changes
if: steps.changes.outputs.modified == 'true'
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
git add .
git commit -m "Automatic code formatting"
git push