Skip to content

Merge branch 'develop' of https://github.com/ebrvc/DevOps-GroupC into… #12

Merge branch 'develop' of https://github.com/ebrvc/DevOps-GroupC into…

Merge branch 'develop' of https://github.com/ebrvc/DevOps-GroupC into… #12

Workflow file for this run

name: Format check on push

Check failure on line 1 in .github/workflows/quality.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/quality.yml

Invalid workflow file

`pull_request` requires a map value
on:
pull_request:
- types: [opened, reopened, edited, synchronize, ready_for_review]
# branches:
# - feature/software-quality-tools
jobs:
dotnet-format:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
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 config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git commit -am "Automated formatting"
git push