Skip to content

Commit 746ea82

Browse files
committed
get rid of deprecated action
1 parent c4f0c14 commit 746ea82

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Diff for: .github/workflows/createNewCodeSandBoxDemo.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ jobs:
1010
uses: ruby/setup-ruby@ee26e27437bde475b19a6bf8cb73c9fa658876a2
1111
with:
1212
ruby-version: '3.1.2'
13+
- name: Checkout code
14+
uses: actions/checkout@v4
1315
- 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 }}"
1518
env:
1619
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 }}
2320
- name: Run script to update package.json on new branch
2421
run: |
2522
cd .github/scripts
@@ -30,5 +27,4 @@ jobs:
3027
git status
3128
git add package.json
3229
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 }}"

0 commit comments

Comments
 (0)