-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 1.08 KB
/
net80-dotnet-format-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# https://github.com/marketplace/actions/dotnet-format-on-pull-request
name: .NET 8.0 tsubakimoto/action-dotnet-format
on:
# pull_request:
# branches:
# - main
# paths:
# - 'dotnet/net8.0/**'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
run-dotnet-format:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'dotnet/net8.0'
steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Format
id: format
uses: tsubakimoto/[email protected]
with:
base-branch: ${{ github.head_ref }}
project-path: 'consoleapp/consoleapp.csproj'
verbosity: 'diag'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Output
run: |
echo "head-branch: ${{ steps.format.outputs.head-branch }}"
echo "changed: ${{ steps.format.outputs.changed }}"
echo "pull-request-url: ${{ steps.format.outputs.pull-request-url }}"