From e92916a1282fce6ad8a45ce5a60863c59fd0f1eb Mon Sep 17 00:00:00 2001 From: Bo Wu Date: Wed, 27 Nov 2024 20:11:46 -0800 Subject: [PATCH] remove the branch ref to default to main --- .github/workflows/provision-replay-verify-archive-disks.yaml | 1 - .../workflow-run-replay-verify-archive-storage-provision.yaml | 2 +- .github/workflows/workflow-run-replay-verify-on-archive.yaml | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/provision-replay-verify-archive-disks.yaml b/.github/workflows/provision-replay-verify-archive-disks.yaml index a8fd80ef2df5b..067c3dafbbc27 100644 --- a/.github/workflows/provision-replay-verify-archive-disks.yaml +++ b/.github/workflows/provision-replay-verify-archive-disks.yaml @@ -46,7 +46,6 @@ jobs: provision-testnet: if: | github.event_name == 'schedule' || - github.event_name == 'push' || github.event_name == 'workflow_dispatch' && (inputs.NETWORK == 'testnet' || inputs.NETWORK == 'all') needs: determine-test-metadata uses: ./.github/workflows/workflow-run-replay-verify-archive-storage-provision.yaml diff --git a/.github/workflows/workflow-run-replay-verify-archive-storage-provision.yaml b/.github/workflows/workflow-run-replay-verify-archive-storage-provision.yaml index e0560371a98b6..5cccf74624724 100644 --- a/.github/workflows/workflow-run-replay-verify-archive-storage-provision.yaml +++ b/.github/workflows/workflow-run-replay-verify-archive-storage-provision.yaml @@ -21,7 +21,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: ${{ github.event.inputs.BRANCH || 'add_replay_verify_workflow' }} + ref: ${{ github.event.pull_request.head.ref || github.ref }} # Authenticate to Google Cloud the project is aptos-ci - name: Authenticate to Google Cloud diff --git a/.github/workflows/workflow-run-replay-verify-on-archive.yaml b/.github/workflows/workflow-run-replay-verify-on-archive.yaml index ec2aab5147c51..9031540e40254 100644 --- a/.github/workflows/workflow-run-replay-verify-on-archive.yaml +++ b/.github/workflows/workflow-run-replay-verify-on-archive.yaml @@ -46,7 +46,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: ${{ github.event.inputs.BRANCH || 'add_replay_verify_workflow' }} + ref: ${{ github.event.pull_request.head.ref || github.ref }} - uses: aptos-labs/aptos-core/.github/actions/docker-setup@main id: docker-setup