Delete auto-format.yml

Formatting is handled internally
This commit is contained in:
Daniel Freedman 2022-02-25 15:34:29 -08:00 committed by GitHub
parent 633aa4a2eb
commit 6c23d163ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,40 +0,0 @@
name: auto-format
on:
push:
branches: master
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- name: NPM install
# Don't run postinstall because we don't need to install sub-packages.
run: npm ci --ignore-scripts
- name: Format
run: npm run format
- name: Check if format produces git diff
id: ifChange
run: git diff --exit-code || echo "::set-output name=changed::yes"
- name: Create PR
if: steps.ifChange.outputs.changed == 'yes'
uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.TEDIUM_BOT_GITHUB_ACCESS_TOKEN }}
commit-message: Auto-format
committer: Polymer GitHub Actions Robot <format-bot@polymer-project.org>
title: Auto-format master branch
body: This PR was auto generated by the auto-format GitHub action.
reviewers: azakus,asyncliz
branch: auto-format-action
branch-suffix: short-commit-hash
labels: "Ready for Google"