Skip to content

Merge pull request #47 from Ali-YousefiTelori/develop #47

Merge pull request #47 from Ali-YousefiTelori/develop

Merge pull request #47 from Ali-YousefiTelori/develop #47

name: dotnet format
on:
push:
branches: [develop]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
- name: Run dotnet format
id: format
uses: jfversluis/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
action: "fix"
workspace: "./src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.sln"
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.sln -f net7.0
- name: Commit files
if: steps.format.outputs.has-changes == 'true'
uses: EndBug/[email protected]
with:
author_name: Github Actions
author_email: [email protected]
message: "chore: Automated dotnet-format update"
ref: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}