Skip to content

Commit

Permalink
chore(workflows/preview_link): 差分を取るために両リポジトリを fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jan 13, 2025
1 parent 9a840ed commit 437ae62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- id: vars
uses: actions/github-script@v7
with:
Expand Down Expand Up @@ -116,6 +119,10 @@ jobs:
- id: file_list
shell: bash
run: |
set -ex
git remote add base '${{ github.event.pull_request.base.repo.clone_url }}'
git fetch base '${{ github.event.pull_request.head.ref }}'
content=$(
git diff --name-status --diff-filter=dr ${{ steps.vars.outputs.sha0 }} ${{ steps.vars.outputs.sha }} |
sed -n '
Expand Down

0 comments on commit 437ae62

Please sign in to comment.