Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shota-kitazawa committed May 3, 2024
1 parent 85c5e46 commit 059fd33
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/reviewapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 059fd33

Please sign in to comment.