Skip to content

Commit

Permalink
gh rate limit workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad0 committed Feb 5, 2024
1 parent 6815457 commit c7e624a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/mirror_noir_subrepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
- name: Push to branch
run: |
set -xue # print commands
# Enable gh executable.
export GH_TOKEN="${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}"
# Enable gh executable. We spread out the API requests between the github actions bot token, and aztecbot
export GH_TOKEN="${{ secrets.GITHUB_TOKEN }}"
SUBREPO_PATH=noir
BRANCH=aztec2-packages
# identify ourselves, needed to commit
Expand Down Expand Up @@ -85,8 +85,10 @@ jobs:
$MESSAGE
END_COMMIT_OVERRIDE"""
PR_URL=$(gh pr list --repo noir-lang/noir --head aztec2-packages --json url --jq ".[0].url")
# for cross-creating the PR in noir, we use aztecbot's token
export GH_TOKEN=$${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
if [[ "$PR_URL" == "" ]]; then
gh pr create --repo noir-lang/noir --title "feat: Sync from aztec-packages" --body "$PR_BODY" --base master --head aztec2-packages
else
gh pr edit "$PR_URL" --body "$PR_BODY"
fi
fi

0 comments on commit c7e624a

Please sign in to comment.