From b51253251f81668275f454d3797f8d6595a2af34 Mon Sep 17 00:00:00 2001 From: Mike Surowiec Date: Fri, 3 Sep 2021 16:54:55 -0400 Subject: [PATCH] Docker: Clone base branch instead of selective files (#21317) * clone base branch instead of selective files --- .github/workflows/staging-deploy-pr-docker.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/staging-deploy-pr-docker.yml b/.github/workflows/staging-deploy-pr-docker.yml index 97896af915..94acab55bf 100644 --- a/.github/workflows/staging-deploy-pr-docker.yml +++ b/.github/workflows/staging-deploy-pr-docker.yml @@ -12,8 +12,6 @@ on: - completed env: - EARLY_ACCESS_SCRIPT_PATH: script/early-access/clone-for-build.js - EARLY_ACCESS_SUPPORT_FILES: script/package.json # In this specific workflow relationship, the `github.event.workflow_run.pull_requests` # array will always contain only 1 item! Specifically, it will contain the PR associated # with the `github.event.workflow_run.head_branch` that triggered the preceding @@ -43,6 +41,9 @@ jobs: GITHUB_EVENT_CONTEXT: ${{ toJSON(github.event) }} run: echo "$GITHUB_EVENT_CONTEXT" + - name: Check out repo's default branch + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + - name: Download build artifact uses: dawidd6/action-download-artifact@b9571484721e8187f1fd08147b497129f8972c74 with: @@ -69,13 +70,6 @@ jobs: node-version: 16.x cache: npm - - if: ${{ github.repository == 'github/docs-internal' }} - name: Download the script to clone early access - uses: Bhacaz/checkout-files@c8f01756bfd894ba746d5bf48205e19000b0742b - with: - files: ${{ env.EARLY_ACCESS_SCRIPT_PATH }} ${{ env.EARLY_ACCESS_SUPPORT_FILES }} - token: ${{ secrets.GITHUB_TOKEN }} - # Add any dependencies that are needed for this workflow below - if: ${{ github.repository == 'github/docs-internal' }} name: Install temporary development-only dependencies @@ -83,7 +77,7 @@ jobs: - if: ${{ github.repository == 'github/docs-internal' }} name: Clone early access - run: node ${{ env.EARLY_ACCESS_SCRIPT_PATH }} + run: node script/early-access/clone-for-build.js env: DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }} GIT_BRANCH: ${{ github.event.workflow_run.head_branch }}