Compare commits

..

No commits in common. 'master' and 'v1.2' have entirely different histories.
master ... v1.2

@ -7,28 +7,21 @@ inputs:
github-token: github-token:
description: '' description: ''
default: '' default: ''
assignees:
description: ''
default: 'aragas, artifixer'
reviewers:
description: ''
default: 'aragas, artifixer'
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Setup - name: Setup
uses: butr/actions-common-setup@v2 uses: butr/actions-common-setup@v1.2
with: with:
github-token: ${{ inputs.github-token }} github-token: ${{ inputs.github-token }}
- name: Install dotnet-format - name: Install dotnet-format
run: dotnet tool install -g dotnet-format run: dotnet tool install -g dotnet-format
shell: pwsh
- name: Run dotnet format - name: Run dotnet format
id: format id: format
uses: jfversluis/dotnet-format@v1.0.9 uses: jfversluis/dotnet-format@v1.0.7
with: with:
repo-token: ${{ inputs.github-token }} repo-token: ${{ inputs.github-token }}
action: "fix" action: "fix"
@ -38,9 +31,9 @@ runs:
- name: Commit files - name: Commit files
run: >- run: >-
if ('${{ steps.format.outputs.has-changes == 'true' }}' -eq '') { Return }; if ('${{ steps.format.outputs.has-changes == 'true' }}' -eq '') { Return };
git config --local user.name "github-actions[bot]"; git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"; git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git diff-index --quiet HEAD || git commit -a -m 'Automated dotnet-format update'; git commit -a -m 'Automated dotnet-format update'
shell: pwsh shell: pwsh
- name: Create Pull Request - name: Create Pull Request
@ -52,20 +45,18 @@ runs:
committer: GitHub <noreply@github.com> committer: GitHub <noreply@github.com>
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
labels: code-formatting labels: code-formatting
assignees: ${{ inputs.assignees }} assignees: aragas, artifixer, zijistark
reviewers: ${{ inputs.reviewers }} reviewers: aragas, artifixer, zijistark
branch: code-formatting/fix-codeformatting branch: code-formatting/fix-codeformatting
delete-branch: true
# Pushing won't work to forked repos # Pushing won't work to forked repos
# - name: Commit files # - name: Commit files
# if: steps.format.outputs.has-changes == 'true' # if: steps.format.outputs.has-changes == 'true'
# run: >- # run: |
# git config --local user.name "github-actions[bot]"; # git config --local user.name "github-actions[bot]"
# git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"; # git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git commit -a -m 'Automated dotnet-format update; # git commit -a -m 'Automated dotnet-format update
# Co-authored-by: ${{ github.event.pull_request.user.login }} <${{ github.event.pull_request.user.id }}+${{ github.event.pull_request.user.login }}@users.noreply.github.com>' # Co-authored-by: ${{ github.event.pull_request.user.login }} <${{ github.event.pull_request.user.id }}+${{ github.event.pull_request.user.login }}@users.noreply.github.com>'
# shell: pwsh
# - name: Push changes # - name: Push changes
# if: steps.format.outputs.has-changes == 'true' # if: steps.format.outputs.has-changes == 'true'

Loading…
Cancel
Save