diff --git a/.github/workflows/reviewapp.yml b/.github/workflows/reviewapp.yml index 7f3f69b89..2d89576dc 100644 --- a/.github/workflows/reviewapp.yml +++ b/.github/workflows/reviewapp.yml @@ -16,25 +16,12 @@ jobs: pull-requests: write if: ${{ ! startsWith(github.head_ref, 'renovate/') }} steps: - - id: check_if_triggered_by_pr_label - run: | - if [ "${{ github.event.pull_request.head.sha }}" != "" ]; then - echo -n "value=true" >> "$GITHUB_OUTPUT" - else - echo -n "value=false" >> "$GITHUB_OUTPUT" - fi - - uses: actions/checkout@v4 - if: steps.check_if_triggered_by_pr_label.outputs.value == 'true' with: fetch-depth: 0 + # もし PullRequest Label トリガーの場合、merge 前の branch を checkout する ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v4 - if: steps.check_if_triggered_by_pr_label.outputs.value == 'false' - with: - fetch-depth: 0 - - id: check_if_reviewapp continue-on-error: true env: