Skip to content

Commit 68e0862

Browse files
committed
ci: use current branch as base for pull request
Avoid creating new branches since peter-evans/create-pull-request uses the currently checked-out branch as the base.
1 parent 1ffe37d commit 68e0862

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/update-cdk-apis-and-cli-help.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ jobs:
3232
persist-credentials: false
3333

3434
# Angular CDK
35-
- name: Create Branch
36-
run: git checkout -b tmp-cdk-docs-update ${{ github.ref }}
3735
- name: Generate CDK apis
3836
run: node adev/scripts/update-cdk-apis/index.mjs
3937
env:
@@ -60,10 +58,9 @@ jobs:
6058
Updated Angular CDK api files.
6159
6260
# Angular CLI
63-
- name: Create Branch
61+
- name: Reset to current GitHub ref
6462
run: |
65-
git reset --hard HEAD
66-
git checkout -b tmp-cli-docs-update ${{ github.ref }}
63+
git reset --hard ${{ github.ref }}
6764
- name: Generate CLI help
6865
run: node adev/scripts/update-cli-help/index.mjs
6966
env:

0 commit comments

Comments
 (0)