Autoblack only on develop

pull/1676/head
Simon 2 years ago committed by GitHub
parent a8046a8290
commit baa0849f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@
name: autoblack name: autoblack
on: on:
push: push:
branches: ["master"] branches: ["develop"]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -24,9 +24,9 @@ jobs:
if: failure() if: failure()
run: | run: |
black . --line-length 101 black . --line-length 101
git config --global user.name 'autoblack' git config --global user.name github-actions
git config --global user.email 'jasoncameron.all@gmail.com' git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout $GITHUB_HEAD_REF git checkout $GITHUB_HEAD_REF
git commit -am "fixup: Format Python code with Black" git commit -am "fixup: Format Python code with Black"
git push origin HEAD:master git push origin HEAD:develop

Loading…
Cancel
Save