Skip to content

Change working directory for workflows #2

Change working directory for workflows

Change working directory for workflows #2

name: .NET
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
working-directory: dotnet/paccor_scripts
run: dotnet restore
- name: Build
working-directory: dotnet/paccor_scripts
run: dotnet build
- name: Test
working-directory: dotnet/paccor_scripts
run: dotnet test
- name: Pack
working-directory: dotnet/paccor_scripts
run: dotnet pack
working-directory: dotnet/paccor_scripts/paccor_scripts

Check failure on line 28 in .github/workflows/dotnet-build-paccor_scripts.yml

View workflow run for this annotation

GitHub Actions / .NET

Invalid workflow file

The workflow is not valid. .github/workflows/dotnet-build-paccor_scripts.yml (Line: 28, Col: 7): 'working-directory' is already defined
- name: Publish
run: |
dotnet -r linux-x64 -c Release
dotnet -r win-x64 -c Release