Skip to content

Commit

Permalink
[check-links] Diff against common ancestor with origin/main (#11443)
Browse files Browse the repository at this point in the history
* [check-links] Diff against common ancestor with origin/main

* Use github variable instead of HEAD
  • Loading branch information
djaglowski authored Jun 22, 2022
1 parent 21ae2af commit 9c6aa25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Get changed files
id: changes
run: |
echo "::set-output name=md::$(git diff --name-only --diff-filter=ACMRTUXB origin/${{ github.event.pull_request.base.ref }} ${{ github.event.pull_request.head.sha }} | grep .md$ | xargs)"
echo "::set-output name=md::$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main ${{ github.event.pull_request.head.sha }}) ${{ github.event.pull_request.head.sha }} | grep .md$ | xargs)"
check-links:
runs-on: ubuntu-latest
needs: changedfiles
Expand Down

0 comments on commit 9c6aa25

Please sign in to comment.