Skip to content

Commit f339d31

Browse files
committed
fix: add safe check to workflow
1 parent 23cb006 commit f339d31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-auto-assign.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Determine label based on branch prefix or author
1919
id: label
2020
run: |
21-
# Check if it's a Dependabot PR
22-
if [[ "${{ github.actor }}" == "dependabot[bot]" ]]; then
21+
# Check if it's a Dependabot PR (using the PR author, not the workflow actor)
22+
if [[ "${{ github.event.pull_request.user.login }}" == "dependabot[bot]" ]]; then
2323
echo "label=dependencies" >> $GITHUB_OUTPUT
2424
# Check branch prefixes
2525
elif [[ "${{ github.head_ref }}" == feature/* ]] || [[ "${{ github.head_ref }}" == feat/* ]]; then

0 commit comments

Comments
 (0)