From 03b7a66ba46989d4fe01c1c4a61cd279873ef8ac 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 - .github/workflows/replay-verify-on-archive.yaml | 3 --- .../workflow-run-replay-verify-archive-storage-provision.yaml | 2 +- .github/workflows/workflow-run-replay-verify-on-archive.yaml | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/provision-replay-verify-archive-disks.yaml b/.github/workflows/provision-replay-verify-archive-disks.yaml index a8fd80ef2df5b1..067c3dafbbc279 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/replay-verify-on-archive.yaml b/.github/workflows/replay-verify-on-archive.yaml index 0a5ba5ea906889..3effdbc23f0e0e 100644 --- a/.github/workflows/replay-verify-on-archive.yaml +++ b/.github/workflows/replay-verify-on-archive.yaml @@ -58,7 +58,6 @@ jobs: replay-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-on-archive.yaml @@ -72,8 +71,6 @@ jobs: replay-mainnet: if: | github.event_name == 'schedule' || - github.event_name == 'push' || - github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' && (inputs.NETWORK == 'mainnet' || inputs.NETWORK == 'all' ) needs: determine-test-metadata uses: ./.github/workflows/workflow-run-replay-verify-on-archive.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 e0560371a98b6d..5cccf746247245 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 ec2aab5147c511..9031540e402540 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