Skip to content

Commit

Permalink
🔧 Change main branch to master branch on workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nanpuhaha committed Dec 18, 2022
1 parent 8fba170 commit d630dfd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/pre-commit-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: pre-commit

on:
pull_request:
branches: [main]
branches: [master]
types: [opened, synchronize, closed]
push:
branches: [main]
branches: [master]

jobs:
pre-commit:
Expand All @@ -30,18 +30,18 @@ jobs:

- name: Show File Changes
run: |
echo 'files.json'
echo -e 'files.json'
cat $HOME/files.json
echo 'files_modified.json'
echo -e '\nfiles_modified.json\n'
cat $HOME/files_modified.json
echo 'files_added.json'
echo -e '\nfiles_added.json'
cat $HOME/files_added.json
echo 'files_removed.json'
cat $HOME/files_removed.json
echo '${{ steps.file_changes.outputs.files}}'
echo '${{ steps.file_changes.outputs.files_modified}}'
echo '${{ steps.file_changes.outputs.files_added}}'
echo '${{ steps.file_changes.outputs.files_removed}}'
echo '${{ steps.file_changes.outputs.files }}'
echo '${{ steps.file_changes.outputs.files_modified }}'
echo '${{ steps.file_changes.outputs.files_added }}'
echo '${{ steps.file_changes.outputs.files_removed }}'
# https://github.com/marketplace/actions/pre-commit
# https://github.com/cloudposse/github-action-pre-commit
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: pre-commit

on:
pull_request:
branches: [main]
branches: [master]
types: [opened, synchronize, closed]
push:
branches: [main]
branches: [master]

jobs:
pre-commit:
Expand Down

0 comments on commit d630dfd

Please sign in to comment.