WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Autoformat code - push results #16729

Autoformat code - push results

Autoformat code - push results #16729

Workflow file for this run

name: Autoformat code - push results
on:
workflow_run:
workflows: ["Autoformat code"]
types:
- completed
# This action needs the following permissions in order to push the results back to the original branch.
permissions:
pull-requests: write
contents: write
jobs:
push-and-notify:
name: Push autoformatted code and notify user
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: 'Push autoformatted patch'
uses: rolfbjarne/[email protected]
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
git_user_email: '[email protected]'
git_user_name: 'GitHub Actions Autoformatter'
commentOnPullRequest: false