actions/example-pull-request: checkout gets the default branch

This commit is contained in:
username 2023-11-08 15:56:49 +01:00
parent ee4a08f2b5
commit 600dee1abf
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 21 additions and 2 deletions

View file

@ -18,6 +18,7 @@ function setup() {
git config user.email root@example.com
git config user.name username
echo fork $PROOF >> README
touch file-unique-to-the-pr-branch
git add .
git commit -m 'fork change'
git push
@ -32,6 +33,7 @@ function setup() {
git checkout -b other
git config user.email root@example.com
git config user.name username
touch file-unique-to-the-pr-branch
echo other $PROOF >> README
git add .
git commit -m 'other change'