Skip to content

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

Merge pull request #3 from Ali-YousefiTelori/develop

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

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: |
6.0.x
7.0.x
- name: Run dotnet format
id: format
uses: jfversluis/dotnet-format@v1.0.5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
action: "fix"
workspace: "./src/CSharp/EasyMicroservices.UI.Places.Blazor.sln"
- name: Run dotnet format
id: format

Check failure on line 26 in .github/workflows/dotnet-format-action.yml

View workflow run for this annotation

GitHub Actions / dotnet format

Invalid workflow file

The workflow is not valid. .github/workflows/dotnet-format-action.yml (Line: 26, Col: 13): The identifier 'format' may not be used more than once within the same scope.
uses: jfversluis/dotnet-format@v1.0.5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
action: "fix"
workspace: "./src/CSharp/EasyMicroservices.UI.Places.Core.sln"
- name: Test
run: |
dotnet test ./src/CSharp/EasyMicroservices.UI.Places.Blazor.sln -f net6.0
dotnet test ./src/CSharp/EasyMicroservices.UI.Places.Core.sln -f net7.0
- name: Commit files
if: steps.format.outputs.has-changes == 'true'
uses: EndBug/add-and-commit@v4.1.0
with:
author_name: Github Actions
author_email: actions@github.com
message: "chore: Automated dotnet-format update"
ref: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}