Skip to content

Commit

Permalink
Fix regenerate-target-info.yml (#1060)
Browse files Browse the repository at this point in the history
* Fix regenerate-target-info.yml: install nightly rust toolchain

* Fix branch created in regenerate-target-info.yml

Make it less confusing for gh

* Add rust-cache to regenerate-target-info.yml

* Fix creating PR in regenerate-target-info.yml

* Fix creating PR in regenerate-target-info.yml

Pass `--body` to `gh pr create`

* Fix title of PR generated by regenerate-target-info.yml
  • Loading branch information
NobodyXu committed May 4, 2024
1 parent c39ba39 commit 0d096e5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/regenerate-target-info.yml
Expand Up @@ -16,12 +16,13 @@ jobs:

- name: Generate branch name
run: |
git checkout -b regenerate-target-info/${{ github.run_id }}
git checkout -b regenerate-target-info-${{ github.run_id }}
- name: Install rust
run: |
rustup toolchain install stable --no-self-update --profile minimal
rustup toolchain install stable nightly --no-self-update --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Regenerate target info
run: cargo run -p gen-target-info

Expand All @@ -45,4 +46,4 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create --base main --fill
gh pr create --base main --title "Update src/target_info.rs" --body "Automatically regenerated in CI"

0 comments on commit 0d096e5

Please sign in to comment.