Skip to content

Huszar Conversion Update: Complete Metadata Specification #246

Huszar Conversion Update: Complete Metadata Specification

Huszar Conversion Update: Complete Metadata Specification #246

Workflow file for this run

name: auto-format
on: pull_request
jobs:
format:
# Check if the PR is not from a fork
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: black
uses: lgeiger/black-action@6d855d727b1f709b1ee1af273a3db751792f67ef
with:
args: .
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'Cody Baker'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated changes"
git push