diff --git a/.github/workflows/core_build.yml b/.github/workflows/core_build.yml index ac6ee60d8..6021238e6 100644 --- a/.github/workflows/core_build.yml +++ b/.github/workflows/core_build.yml @@ -39,7 +39,7 @@ jobs: uses: actions/checkout@v3 with: repository: 'mod-playerbots/azerothcore-wotlk' - ref: 'Playerbot' + ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }} - name: Set reusable strings id: strings diff --git a/.github/workflows/macos_build.yml b/.github/workflows/macos_build.yml index ab4d83daa..a7b5a5e13 100644 --- a/.github/workflows/macos_build.yml +++ b/.github/workflows/macos_build.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 with: repository: 'mod-playerbots/azerothcore-wotlk' - ref: 'Playerbot' + ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }} - name: Checkout Playerbot Module uses: actions/checkout@v4 with: diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index 121d97751..94d6af108 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v3 with: repository: 'mod-playerbots/azerothcore-wotlk' - ref: 'Playerbot' + ref: ${{ (github.base_ref || github.ref_name) == 'test-staging' && 'test-staging' || 'Playerbot' }} path: 'ac' - name: Checkout Playerbot Module uses: actions/checkout@v3