Skip to content

Commit

Permalink
chore(build): fix PR builder issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Achintha Isuru committed Aug 20, 2024
1 parent f34a69f commit 44c686f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
if [ ${{ github.event.pull_request.head.repo.fork }} == true ]; then
echo "Comparing changes for PR from fork"
git diff --name-only origin/${{ github.base_ref }}..pr-${{ github.event.pull_request.number }} > changed_files.txt
else
echo "Comparing changes for internal PR"
git diff --name-only origin/${{ github.base_ref }}..origin/${{ github.head_ref }} > changed_files.txt
fi
echo "Changed files:"
cat changed_files.txt
Expand Down Expand Up @@ -101,7 +104,6 @@ jobs:
id: checkout
uses: actions/checkout@v3
with:
token: ${{ env.GH_TOKEN }}
fetch-depth: 0

- name: ☕️ Set up Adopt JDK 17
Expand All @@ -127,7 +129,6 @@ jobs:
id: checkout
uses: actions/checkout@v3
with:
token: ${{ env.GH_TOKEN }}
fetch-depth: 0

- name: 🟢 Setup node
Expand Down

0 comments on commit 44c686f

Please sign in to comment.