Skip to content

Commit 8d8a83f

Browse files
authored
Update orphan.yml
1 parent 58aa222 commit 8d8a83f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/orphan.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Create new empty branch
14+
with:
15+
ref: firmware
16+
- name: Create new empty firmware branch
1517
run: |
1618
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
1719
git config user.name "github-actions[bot]"
1820
git switch --orphan new_branch # create empty branch
1921
git commit --allow-empty -m "Initial commit"
2022
git push -u origin new_branch # push empty branch in repo
21-
git switch orphan
23+
git switch firmware
2224
git reset --hard new_branch # reset firmware branch
23-
git push origin orphan -f
25+
git push origin firmware -f
2426
git push origin --delete new_branch # delete empty_branch
25-

0 commit comments

Comments
 (0)