From 4fa87c10088b458d6ffed85b6ed219480c574e05 Mon Sep 17 00:00:00 2001 From: shinya Date: Tue, 6 Feb 2024 10:59:24 +0900 Subject: [PATCH] =?UTF-8?q?checkout=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-merge.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 58b40697c8..73ff4c9ecb 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -17,6 +17,10 @@ jobs: PR_URL: ${{github.event.pull_request.html_url}} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: + - name: Checkout repository with preceding commits + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Approve PR run: gh pr review "$PR_URL" --approve ## いきなりマージするのが怖いので、一旦自動承認(↑)だけにする @@ -30,7 +34,7 @@ jobs: steps: - name: failed # 失敗したときにデバッグ用に情報を出力しておく - run: | + run: | echo 'Haven't met the conditions to merge yet' echo '${{ toJSON(github.event.workflow_run) }}' - exit 1 \ No newline at end of file + exit 1