Skip to content

Commit 8b9d3f6

Browse files
committed
wip
1 parent 16352c1 commit 8b9d3f6

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/build-interface.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
env:
88
REGISTRY: ghcr.io
99
IMAGE_NAME: ${{ github.repository }}
10+
LINGODB_REPOSITORY= lingo-db/lingodb-test-actions
1011

1112
jobs:
1213
build-docker:
@@ -39,18 +40,21 @@ jobs:
3940
working-directory: frontend
4041
- name: Authenticate GitHub CLI
4142
run: echo "${{ secrets.LINGODB_TOKEN }}" | gh auth login --with-token
42-
- name: Trigger build in Repo A
43+
- name: Read LingoDB Commit
44+
- id: get-lingodb-commit
45+
- run: echo "lingodb_commit=$(cat lingodb-commit.txt)" >> $GITHUB_OUTPUT
46+
- name: Trigger build of lingodb binaries
4347
id: trigger-build
4448
run: |
45-
gh api repos/lingo-db/lingodb-test-actions/actions/workflows/release-for-webinterface.yml/dispatches -F ref="main" -F inputs[ref]="b0d8f7a6f5be75a1b545ac54764473048f36b5d7"
49+
gh api repos/${{ env.LINGODB_REPOSITORY }}/actions/workflows/release-for-webinterface.yml/dispatches -F ref="main" -F inputs[ref]="b0d8f7a6f5be75a1b545ac54764473048f36b5d7"
4650
4751
- name: Wait for a few seconds
4852
run: sleep 5
4953

5054
- name: Get workflow run ID
5155
id: get-run-id
5256
run: |
53-
run_id=$(gh api repos/lingo-db/lingodb-test-actions/actions/workflows/release-for-webinterface.yml/runs | jq -r '.workflow_runs[0].id')
57+
run_id=$(gh api repos/${{ env.LINGODB_REPOSITORY }}/actions/workflows/release-for-webinterface.yml/runs | jq -r '.workflow_runs[0].id')
5458
echo "build_run_id=$run_id" >> $GITHUB_OUTPUT
5559
- name: Get Workflow Run Status and Wait
5660
id: wait-for-run
@@ -61,14 +65,14 @@ jobs:
6165
6266
while :; do
6367
status=$(gh api \
64-
repos/lingo-db/lingodb-test-actions/actions/runs/$build_run_id \
68+
repos/${{ env.LINGODB_REPOSITORY }}/actions/runs/$build_run_id \
6569
--jq '.status')
6670
6771
echo "Current status: $status"
6872
6973
if [[ "$status" == "completed" ]]; then
7074
conclusion=$(gh api \
71-
repos/lingo-db/lingodb-test-actions/actions/runs/$build_run_id \
75+
repos/${{ env.LINGODB_REPOSITORY }}/actions/runs/$build_run_id \
7276
--jq '.conclusion')
7377
7478
echo "Workflow completed with conclusion: $conclusion"
@@ -84,20 +88,20 @@ jobs:
8488
echo "Waiting for 10 seconds before checking again..."
8589
sleep 10
8690
done
87-
- name: Download and Extract Artifact
91+
- name: Download and Extract LingoDB binaries
8892
run: |
8993
build_run_id="${{ steps.get-run-id.outputs.build_run_id }}"
9094
9195
echo "Fetching artifact for workflow run ID $build_run_id"
9296
9397
artifact_id=$(gh api \
94-
repos/lingo-db/lingodb-test-actions/actions/runs/$build_run_id/artifacts \
98+
repos/${{ env.LINGODB_REPOSITORY }}/actions/runs/$build_run_id/artifacts \
9599
--jq '.artifacts[0].id')
96100
97101
echo "Artifact ID: $artifact_id"
98102
99103
gh api \
100-
repos/lingo-db/lingodb-test-actions/actions/artifacts/$artifact_id/zip > artifact.zip
104+
repos/${{ env.LINGODB_REPOSITORY }}/actions/artifacts/$artifact_id/zip > artifact.zip
101105
102106
mkdir -p docker-build
103107
unzip artifact.zip -d docker-build/lingodb-binaries

lingodb-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b0d8f7a6f5be75a1b545ac54764473048f36b5d7

0 commit comments

Comments
 (0)