From 7cce8d12eb732707976f4334784ed457aa9f70ca Mon Sep 17 00:00:00 2001 From: girazoki Date: Tue, 10 Dec 2024 09:57:07 +0100 Subject: [PATCH 1/9] girazoki bridge test --- .github/workflows/e2e-test-bridge.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index 744332906..a3ebfaac2 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -3,7 +3,7 @@ name: Bridge e2e test on: workflow_run: workflows: [CI] - branches: [master] + branches: [girazoki-bridge-test] types: [completed] workflow_dispatch: inputs: @@ -99,7 +99,6 @@ jobs: run_id: ${{ steps.retrieve-run-id.outputs.run_id }} name: binaries path: target/release - search_artifacts: true - name: "Make binaries executable" shell: bash run: | From c677d9731ba82bdaf8ef859bbb6aab6ea1a5d594 Mon Sep 17 00:00:00 2001 From: girazoki Date: Tue, 10 Dec 2024 09:58:18 +0100 Subject: [PATCH 2/9] log --- .github/workflows/e2e-test-bridge.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index a3ebfaac2..c5db51497 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -93,6 +93,10 @@ jobs: id: check_date run: | date --version + - name: Check output + id: check_output + run: | + echo ${{ steps.retrieve-run-id.outputs.run_id }} - name: Download build artifact from triggered workflow uses: dawidd6/action-download-artifact@v2 with: From ffad8a2af60a1f435af7b22880e93c7913fb0b3f Mon Sep 17 00:00:00 2001 From: girazoki Date: Tue, 10 Dec 2024 10:45:50 +0100 Subject: [PATCH 3/9] add v7 --- .github/workflows/e2e-test-bridge.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index c5db51497..9b3de7dc9 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -3,7 +3,7 @@ name: Bridge e2e test on: workflow_run: workflows: [CI] - branches: [girazoki-bridge-test] + branches: [master] types: [completed] workflow_dispatch: inputs: @@ -98,7 +98,7 @@ jobs: run: | echo ${{ steps.retrieve-run-id.outputs.run_id }} - name: Download build artifact from triggered workflow - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v7 with: run_id: ${{ steps.retrieve-run-id.outputs.run_id }} name: binaries From 3b36bd4c85288a5af6c4d6b57da968bcd51374d4 Mon Sep 17 00:00:00 2001 From: girazoki Date: Tue, 10 Dec 2024 10:50:45 +0100 Subject: [PATCH 4/9] allow forks true --- .github/workflows/e2e-test-bridge.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index 9b3de7dc9..a340a04c9 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -103,6 +103,7 @@ jobs: run_id: ${{ steps.retrieve-run-id.outputs.run_id }} name: binaries path: target/release + allow_forks: true - name: "Make binaries executable" shell: bash run: | From 8af1fe360e17055870884d32f8bf9daee4c87b63 Mon Sep 17 00:00:00 2001 From: girazoki Date: Tue, 10 Dec 2024 11:02:00 +0100 Subject: [PATCH 5/9] use sha --- .github/workflows/e2e-test-bridge.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index a340a04c9..956e01471 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -7,7 +7,7 @@ on: types: [completed] workflow_dispatch: inputs: - run_id: + run_sha: description: "Run id from which artifacts are taken" required: true @@ -19,9 +19,9 @@ jobs: id: retrieve-run-id run: | if [[ -n "${{ github.event_name == 'workflow_dispatch' }}" ]]; then - echo "run_id=${{ github.event.inputs.run_id }}" >> $GITHUB_OUTPUT + echo "run_sha=${{ github.event.inputs.run_sha }}" >> $GITHUB_OUTPUT else - echo "run_id=${{ github.event.workflow_run.id }}" >> $GITHUB_OUTPUT + echo "run_sha=${{ github.event.workflow_run.head_sha }}" >> $GITHUB_OUTPUT fi - name: Recognize sha ref id: sharef @@ -100,7 +100,7 @@ jobs: - name: Download build artifact from triggered workflow uses: dawidd6/action-download-artifact@v7 with: - run_id: ${{ steps.retrieve-run-id.outputs.run_id }} + commit: ${{ steps.retrieve-run-id.outputs.run_sha }} name: binaries path: target/release allow_forks: true From 48fec51e3f17ca8cdb414792935dab900b5a21c0 Mon Sep 17 00:00:00 2001 From: girazoki Date: Tue, 10 Dec 2024 12:27:38 +0100 Subject: [PATCH 6/9] try again --- .github/workflows/e2e-test-bridge.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index 956e01471..43e0410f1 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -101,6 +101,7 @@ jobs: uses: dawidd6/action-download-artifact@v7 with: commit: ${{ steps.retrieve-run-id.outputs.run_sha }} + workflow: release.yml name: binaries path: target/release allow_forks: true From 557066722f120469b21a08187f5cc0231cd12fe5 Mon Sep 17 00:00:00 2001 From: girazoki Date: Tue, 10 Dec 2024 12:36:37 +0100 Subject: [PATCH 7/9] work with sha instead of workflow id --- .github/workflows/e2e-test-bridge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index 43e0410f1..36579d1c0 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: inputs: run_sha: - description: "Run id from which artifacts are taken" + description: "Sha commit from which artifacts are taken" required: true jobs: From 0a07c6ca1f6fb13933edc861cc80d8777ddac190 Mon Sep 17 00:00:00 2001 From: girazoki Date: Tue, 10 Dec 2024 12:38:21 +0100 Subject: [PATCH 8/9] log sha --- .github/workflows/e2e-test-bridge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index 36579d1c0..b161c2099 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -96,7 +96,7 @@ jobs: - name: Check output id: check_output run: | - echo ${{ steps.retrieve-run-id.outputs.run_id }} + echo ${{ steps.retrieve-run-id.outputs.run_sha }} - name: Download build artifact from triggered workflow uses: dawidd6/action-download-artifact@v7 with: From 15a5e7813ac8050f2eb0a4c16098df2e260f94a6 Mon Sep 17 00:00:00 2001 From: girazoki Date: Wed, 11 Dec 2024 11:03:53 +0100 Subject: [PATCH 9/9] false --- .github/workflows/e2e-test-bridge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e-test-bridge.yml b/.github/workflows/e2e-test-bridge.yml index b161c2099..2366f5d40 100644 --- a/.github/workflows/e2e-test-bridge.yml +++ b/.github/workflows/e2e-test-bridge.yml @@ -104,7 +104,7 @@ jobs: workflow: release.yml name: binaries path: target/release - allow_forks: true + allow_forks: false - name: "Make binaries executable" shell: bash run: |