Skip to content

Commit

Permalink
build: update PR builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Achintha Isuru committed Aug 20, 2024
1 parent ef4fcd9 commit a0faebb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,19 @@ jobs:
token: ${{ env.GH_TOKEN }}

- name: 🌴 Fetch PR branch
with:
token: ${{ env.GH_TOKEN }}
run: |
if [ ${{ github.event.pull_request.head.repo.fork }} == true ]; then
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }}
else
git fetch origin ${{ github.head_ref }}
fi
with:
token: ${{ env.GH_TOKEN }}
- name: 🗃️ Get changed files
id: changed-files
with:
token: ${{ env.GH_TOKEN }}
run: |
if [ ${{ github.event.pull_request.head.repo.fork }} == true ]; then
echo "Comparing changes for PR from fork"
Expand All @@ -75,8 +77,6 @@ jobs:
fi
echo "Changed files:"
cat changed_files.txt
with:
token: ${{ env.GH_TOKEN }}
- name: 🤖 Check for Android Changes
id: check_android_changes
Expand Down

0 comments on commit a0faebb

Please sign in to comment.