1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Use the 'script/package.json' file for the early access cloning flow (#21156)

This commit is contained in:
James M. Greene
2021-08-26 09:55:22 -05:00
committed by GitHub
parent c771770ca0
commit 559e5f3289

View File

@@ -13,6 +13,7 @@ on:
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
@@ -64,7 +65,7 @@ jobs:
name: Download the script to clone early access
uses: Bhacaz/checkout-files@c8f01756bfd894ba746d5bf48205e19000b0742b
with:
files: ${{ env.EARLY_ACCESS_SCRIPT_PATH }}
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
@@ -85,8 +86,8 @@ jobs:
run: npm prune --production
- if: ${{ github.repository == 'github/docs-internal' }}
name: Delete the script to clone early access
run: rm ${{ env.EARLY_ACCESS_SCRIPT_PATH }}
name: Delete the script directory after cloning early access
run: rm -rf script/
- name: Create a gzipped archive
run: tar -cfz app.tar.gz ./