Perform the push using another account

master
Marcus Bakker 2020-07-16 15:32:12 +02:00 committed by GitHub
parent 0722cb82ec
commit 38ace3e5ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,6 @@
name: Build the Editor
# Controls when the action will run.
# Controls when the action will run. Triggers the workflow on push or pull request events
on:
push:
branches: [ master ]
@ -11,7 +11,7 @@ on:
- 'editor/package.json'
- 'editor/vue.config.js'
jobs:
# This workflow contains a single job called "build".
# This workflow contains a single job called "build":
build:
runs-on: ubuntu-latest
steps:
@ -33,11 +33,14 @@ jobs:
run: rm -r node_modules
working-directory: ./editor
- name: Commit and push changes
- name: Commit files
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "New build of the Editor"
git push
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PERSONAL_TOKEN }}