Skip to content

test: add push in the workflow #7

test: add push in the workflow

test: add push in the workflow #7

Workflow file for this run

name: Format check on push
on:
push:
branches:
- feature/software-quality-tools
jobs:
dotnet-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ./csharp-minitwit/csharp-minitwit.sln
- name: Format
run: dotnet format ./csharp-minitwit/csharp-minitwit.sln --verbosity diagnostic
- name: Push changes
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git commit -am "Automated formatting"
git push