Skip to content

Commit

Permalink
chore: Add .NET 8.0 dotnet-format GitHub Action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto committed Aug 12, 2024
1 parent 36d41bd commit 8240d4f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/net80-dotnet-format-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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'
- 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 }}"

0 comments on commit 8240d4f

Please sign in to comment.