Skip to content

Commit 0d096e5

Browse files
authored
Fix regenerate-target-info.yml (#1060)
* 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
1 parent c39ba39 commit 0d096e5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/regenerate-target-info.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616

1717
- name: Generate branch name
1818
run: |
19-
git checkout -b regenerate-target-info/${{ github.run_id }}
19+
git checkout -b regenerate-target-info-${{ github.run_id }}
2020
2121
- name: Install rust
2222
run: |
23-
rustup toolchain install stable --no-self-update --profile minimal
24-
23+
rustup toolchain install stable nightly --no-self-update --profile minimal
24+
25+
- uses: Swatinem/rust-cache@v2
2526
- name: Regenerate target info
2627
run: cargo run -p gen-target-info
2728

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

0 commit comments

Comments
 (0)