Skip to content

Commit

Permalink
Merge pull request #304 from ShotaroMatsuya/test/test-1
Browse files Browse the repository at this point in the history
test
  • Loading branch information
ShotaroMatsuya authored Aug 28, 2024
2 parents 5b2d106 + 0ec881b commit 7dd652b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/test_changed_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,11 @@ jobs:
- uses: actions/checkout@v4
name: Checkout base branch
with:
fetch-depth: 100
ref: ${{ steps.set-target-branch.outputs.base_ref }}

- uses: actions/checkout@v4
name: Checkout head branch
with:
fetch-depth: 1
ref: ${{ steps.set-target-branch.outputs.head_ref }}
fetch-depth: 0
# ref: ${{ steps.set-target-branch.outputs.base_ref }}

- name: Find common ancestor and check diff
run: |
git fetch origin main
git fetch origin ${{ steps.set-target-branch.outputs.head_ref }}
merge_base=$(git merge-base origin/main ${{ steps.set-target-branch.outputs.head_ref }})
if [ -z "$merge_base" ]; then
echo "No merge base found, exiting."
Expand Down

0 comments on commit 7dd652b

Please sign in to comment.