Skip to content

Commit

Permalink
Add explicit --repo argument in dry-run workflow
Browse files Browse the repository at this point in the history
Because we don't checkout the source code of the `team` repo in the workflow, it tried to work with the `sync-team` repo instead.
  • Loading branch information
Kobzol committed Mar 6, 2025
1 parent cde5a40 commit a76d12b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ jobs:
# --edit-last doesn't work if there is no previous comment, so we have to figure out
# if we should create a comment or not
if gh issue view ${PR} --json comments \
if gh issue view ${PR} --repo rust-lang/team --json comments \
--jq '.comments.[].author.login' | grep --quiet --fixed-strings "github-actions"; then
echo "Editing comment"
gh pr comment ${PR} --body-file comment.txt --edit-last
gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt --edit-last
else
echo "Creating new comment"
gh pr comment ${PR} --body-file comment.txt
gh pr comment ${PR} --repo rust-lang/team --body-file comment.txt
fi

0 comments on commit a76d12b

Please sign in to comment.