From 440fb31386a1a67f5b6e21044f2a2a51013ef815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Thu, 3 Aug 2023 10:04:42 -0700 Subject: [PATCH] fix run for push --- .github/workflows/compatibility-check.yml | 2 +- .github/workflows/downstream.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compatibility-check.yml b/.github/workflows/compatibility-check.yml index 98456f56c3..9c67e53b09 100644 --- a/.github/workflows/compatibility-check.yml +++ b/.github/workflows/compatibility-check.yml @@ -53,7 +53,7 @@ jobs: echo "branch=`(echo "${{ github.event.pull_request.head.sha }}")`" >> $GITHUB_OUTPUT echo "base=`(echo "${{ github.base_ref }}")`" >> $GITHUB_OUTPUT else - echo "repo=`(echo "${{ inputs.repo || 'onflow/cadence' }}")`" >> $GITHUB_OUTPUT + echo "repo=`(echo "${{ inputs.repo || github.repository }}")`" >> $GITHUB_OUTPUT echo "branch=`(echo "${{ inputs.branch }}")`" >> $GITHUB_OUTPUT echo "base=`(echo "${{ inputs.base }}")`" >> $GITHUB_OUTPUT fi diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index aafb3c40a8..3f7862a6e0 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -39,7 +39,7 @@ jobs: run: sh crypto_setup.sh - name: Update Cadence - run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.sha }} + run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}@${{ github.event.pull_request.head.sha || github.sha }} - name: Tidy up run: go mod tidy @@ -63,7 +63,7 @@ jobs: cache: true - name: Update Cadence - run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name }}@${{ github.event.pull_request.head.sha }} + run: go mod edit -replace github.com/onflow/cadence=github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}@${{ github.event.pull_request.head.sha || github.sha }} - name: Tidy up run: go mod tidy