Skip to content

Commit 9982fe4

Browse files
committed
alternate solution
1 parent 4ef1043 commit 9982fe4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/update_sdk.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ jobs:
2121
with:
2222
repository: neurostuff/${{ matrix.sdk[0] }}
2323
path: ${{ matrix.sdk[1] }}/${{ matrix.sdk[0] }}
24-
- name: Setup tmate session
25-
uses: mxschmitt/action-tmate@v3
26-
timeout-minutes: 45
24+
# - name: Setup tmate session
25+
# uses: mxschmitt/action-tmate@v3
26+
# timeout-minutes: 45
2727
- name: Checkout reciprical branch
2828
run: |
2929
cd ${{ matrix.sdk[1] }}/${{ matrix.sdk[0] }}
3030
git fetch
31-
git checkout ${{ github.ref_name }} 2>/dev/null || git checkout -b ${{ github.ref_name }}
31+
git ls-remote --exit-code --heads origin ${{ github.ref_name }} || git branch ${{ github.ref_name }}
32+
git checkout ${{ github.ref_name }}
3233
- name: Generate SDK
3334
run: |
3435
./generate.sh ${{ matrix.sdk[0] }}

0 commit comments

Comments
 (0)