Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/check-profile-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check added profile link
name: Check added profile link (if applicable)

on:
pull_request:
Expand All @@ -11,11 +11,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
fetch-depth: 0
- name: Check if profile URLs changed
id: changes
run: |
if git diff --name-only HEAD^1 HEAD | grep -qx "scripts/profile_urls.txt"; then
git fetch origin ${{ github.event.pull_request.base.ref }}
if git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD | grep -qx "scripts/profile_urls.txt"; then
echo "changed=true" >> "$GITHUB_OUTPUT"
else
echo "changed=false" >> "$GITHUB_OUTPUT"
Expand Down
Loading