Skip to content

Commit dca7537

Browse files
timitimi
authored andcommitted
fix: use token to clone private lumis repo and test with main branch
1 parent 82e052a commit dca7537

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
2626
run: |
2727
if [ "${{ github.event.inputs.tag }}" != "" ]; then
2828
echo "version=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
29+
echo "checkout_ref=refs/tags/${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
2930
else
3031
echo "version=0.0.0-test" >> $GITHUB_OUTPUT
32+
echo "checkout_ref=refs/heads/main" >> $GITHUB_OUTPUT
3133
fi
3234
3335
build-tauri-macos:
@@ -40,9 +42,9 @@ jobs:
4042

4143
- name: Clone lumis source code
4244
run: |
43-
git clone https://github.com/${{ env.LUMIS_REPO }}.git lumis
45+
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ env.LUMIS_REPO }}.git lumis
4446
cd lumis
45-
git checkout ${{ needs.get-version.outputs.version }}
47+
git checkout ${{ needs.get-version.outputs.checkout_ref }}
4648
4749
- name: Setup Node.js
4850
uses: actions/setup-node@v4
@@ -114,9 +116,9 @@ jobs:
114116

115117
- name: Clone lumis source code
116118
run: |
117-
git clone https://github.com/${{ env.LUMIS_REPO }}.git lumis
119+
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ env.LUMIS_REPO }}.git lumis
118120
cd lumis
119-
git checkout ${{ needs.get-version.outputs.version }}
121+
git checkout ${{ needs.get-version.outputs.checkout_ref }}
120122
121123
- name: Setup Node.js
122124
uses: actions/setup-node@v4
@@ -163,9 +165,9 @@ jobs:
163165

164166
- name: Clone lumis source code
165167
run: |
166-
git clone https://github.com/${{ env.LUMIS_REPO }}.git lumis
168+
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ env.LUMIS_REPO }}.git lumis
167169
cd lumis
168-
git checkout ${{ needs.get-version.outputs.version }}
170+
git checkout ${{ needs.get-version.outputs.checkout_ref }}
169171
170172
- name: Setup Node.js
171173
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)