Skip to content

Commit d89d47a

Browse files
authored
chore(ci): Fix zizmor warning
1 parent 4933ff5 commit d89d47a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/stargazers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
- name: Fetch base branch
2424
run: |
25-
git fetch origin ${{ github.base_ref }} --depth=1
25+
git fetch origin main --depth=1
2626
2727
- name: Extract newly added URLs and GitHub repo links
2828
run: |
2929
# Show diff between base branch and PR HEAD, only for README
30-
git diff --unified=0 origin/${{ github.base_ref }}...HEAD -- README.md > diff.txt
30+
git diff --unified=0 origin/main...HEAD -- README.md > diff.txt
3131
3232
# Extract ALL added https:// URLs from added (+) lines
3333
sed -n 's/^+.*\(https:\/\/[^ )]*\).*/\1/p' diff.txt \

0 commit comments

Comments
 (0)