From f6a781fad3a735e092998e7c94e7e871d1d061e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=84=9C=EC=9E=A5=EC=9B=90=5FT4105?= Date: Sun, 18 Dec 2022 16:41:58 +0900 Subject: [PATCH] :wrench: Change main branch to master branch on workflows --- .github/workflows/pre-commit-2.yml | 26 +++++++++++++++----------- .github/workflows/pre-commit.yml | 4 ++-- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pre-commit-2.yml b/.github/workflows/pre-commit-2.yml index 5b1d665..7858f08 100644 --- a/.github/workflows/pre-commit-2.yml +++ b/.github/workflows/pre-commit-2.yml @@ -1,11 +1,11 @@ -name: pre-commit +name: pre-commit-2 on: pull_request: - branches: [main] + branches: [master] types: [opened, synchronize, closed] push: - branches: [main] + branches: [master] jobs: pre-commit: @@ -30,22 +30,26 @@ 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 }}' + + - name: steps.file_changes.outputs.files + run: | + echo '${{ steps.file_changes.outputs.files }}' # https://github.com/marketplace/actions/pre-commit # https://github.com/cloudposse/github-action-pre-commit - uses: pre-commit/action@v3.0.0 with: - extra_args: --files ${{ steps.file_changes.outputs.files}} + extra_args: --files ${{ steps.file_changes.outputs.files }} # https://github.com/pre-commit/action/issues/7 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7f8ba5b..9552d48 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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: