From f142cec97b91a71dfaa7cd14aa06829dc30a1bf6 Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:50:24 -0400 Subject: [PATCH] [ci] Fix /pregen (#6875) It checked out the main branch instead of the PR branch. Now it checks out the PR branch. --- .github/workflows/comment-command.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/comment-command.yml b/.github/workflows/comment-command.yml index 5bf3beaf5b..3415a5e7fe 100644 --- a/.github/workflows/comment-command.yml +++ b/.github/workflows/comment-command.yml @@ -73,9 +73,14 @@ jobs: content: "rocket", }); - uses: actions/checkout@v4 + - name: Checkout PR with: - fetch-depth: 0 token: ${{ secrets.COMMENT_COMMAND_PAT_TOKEN }} + run: | + gh pr checkout $NUMBER + env: + GITHUB_TOKEN: "${{ secrets.COMMENT_COMMAND_PAT_TOKEN }}" + NUMBER: ${{ github.event.issue.number }} - name: Set up Python 3.9 uses: actions/setup-python@v5 with: @@ -94,6 +99,10 @@ jobs: run: ./wpilibj/generate_hids.py && ./wpilibc/generate_hids.py && ./wpilibNewCommands/generate_hids.py - name: Run PWM Controllers run: ./wpilibj/generate_pwm_motor_controllers.py && ./wpilibc/generate_pwm_motor_controllers.py + - name: Run imgui gl3w + run: ./thirdparty/imgui_suite/generate_gl3w.py + - name: Run imgui fonts + run: ./thirdparty/imgui_suite/generate_fonts.sh - name: Commit run: | # Set credentials