From 4d1c5348a87f4bd75ae8764e47a2e338182b4ad9 Mon Sep 17 00:00:00 2001 From: jamshale Date: Wed, 4 Sep 2024 15:26:48 +0000 Subject: [PATCH] Only change interop testing fork on pull requests Signed-off-by: jamshale --- .github/workflows/bdd-interop-tests.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bdd-interop-tests.yml b/.github/workflows/bdd-interop-tests.yml index 9cf6fb3003..42d41a8971 100644 --- a/.github/workflows/bdd-interop-tests.yml +++ b/.github/workflows/bdd-interop-tests.yml @@ -42,10 +42,15 @@ jobs: run: | # Get AATH git clone https://github.com/hyperledger/aries-agent-test-harness.git - echo ${{ fromJson(steps.get_pr_data.outputs.data).head.repo.html_url }} - echo ${{ fromJson(steps.get_pr_data.outputs.data).head.ref }} - sed -i 's|@git+https://github.com/hyperledger/aries-cloudagent-python@main|@git+${{ fromJson(steps.get_pr_data.outputs.data).head.repo.html_url }}@${{ fromJson(steps.get_pr_data.outputs.data).head.ref }}|g' ./aries-agent-test-harness/aries-backchannels/acapy/requirements-main.txt + + # Change fork and branch for pull requests + if [ ${{ github.event_name }} == 'pull_request' ]; then + echo ${{ fromJson(steps.get_pr_data.outputs.data).head.repo.html_url }} + echo ${{ fromJson(steps.get_pr_data.outputs.data).head.ref }} + sed -i 's|@git+https://github.com/hyperledger/aries-cloudagent-python@main|@git+${{ fromJson(steps.get_pr_data.outputs.data).head.repo.html_url }}@${{ fromJson(steps.get_pr_data.outputs.data).head.ref }}|g' ./aries-agent-test-harness/aries-backchannels/acapy/requirements-main.txt + fi cat aries-agent-test-harness/aries-backchannels/acapy/requirements-main.txt + cd aries-agent-test-harness ./manage build -a acapy-main - name: Run PR Interop Tests