Skip to content

Commit

Permalink
fix: fetch and use pr base for diff
Browse files Browse the repository at this point in the history
  • Loading branch information
agierlicki committed Jan 21, 2025
1 parent 8f06aa9 commit f27c3e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/template_changeset_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Fetch base
run: git fetch ${{ github.event.pull_request.base.ref }}

- name: Check for changeset file
id: checkfile
run: echo "{changeset}={$(git diff --name-only origin/main... | grep -c '.changeset/.*\.md$')} >> $GITHUB_OUTPUT"
run: echo "{changeset}={$(git diff --name-only ${{ github.event.pull_request.base.ref }} | grep -c '.changeset/.*\.md$')} >> $GITHUB_OUTPUT"

- name: Find existing comment
uses: peter-evans/[email protected]
Expand Down

0 comments on commit f27c3e5

Please sign in to comment.