Skip to content

Commit 352180b

Browse files
committed
can't seem to avoid repeating the branch name...
1 parent 4c7fbf8 commit 352180b

File tree

1 file changed

+3
-3
lines changed
  • src/tools/miri/.github/workflows

1 file changed

+3
-3
lines changed

src/tools/miri/.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ jobs:
203203
./miri fmt --check || (./miri fmt && git commit -am "fmt")
204204
- name: Push changes to a branch
205205
run: |
206-
git switch -c "rustup$(date -u +%Y-%m-%d)"
207-
git push -u origin
206+
BRANCH="rustup$(date -u +%Y-%m-%d)"
207+
git switch -c $BRANCH
208+
git push -u origin $BRANCH
208209
- name: Create Pull Request
209210
run: gh pr create -B master --title 'Automatic sync from rustc' --body ''
210211
env:
211212
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212-

0 commit comments

Comments
 (0)