This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
prepare for merge #125
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format | |
on: push | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install modules | |
run: yarn --dev | |
- name: Run Formatter | |
run: yarn format | |
- name: config github | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: add changes | |
run: | | |
git add . | |
- name: commit changes | |
run: | | |
git commit -m "Formatting" --all | exit 0 | |
# NOTE : only push changes when the source branch is being pushed to master (target branch) | |
- name: push changes | |
if: github.ref == 'refs/heads/master' | |
run: | | |
git push |