File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,13 @@ jobs:
10
10
uses : ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2
11
11
with :
12
12
ruby-version : ' 3.1.2'
13
+ - name : Checkout code
14
+ uses : actions/checkout@v4
13
15
- name : Make a new Branch for version
14
- uses : peterjgrainger/action-create-branch@b48b0ca0e307c9b56f059b70274984ffeaa90a43
16
+ run : |
17
+ git checkout -b "version-${{ github.event.client_payload.headless_version }}"
15
18
env :
16
19
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17
- with :
18
- branch : " version-${{ github.event.client_payload.headless_version }}"
19
- - name : Checkout new branch
20
- uses : actions/checkout@v3
21
- with :
22
- ref : version-${{ github.event.client_payload.headless_version }}
23
20
- name : Run script to update package.json on new branch
24
21
run : |
25
22
cd .github/scripts
30
27
git status
31
28
git add package.json
32
29
git commit -m "update package to version ${{ github.event.client_payload.headless_version }}"
33
- git push
34
-
30
+ git push --set-upstream origin "version-${{ github.event.client_payload.headless_version }}"
You can’t perform that action at this time.
0 commit comments