From 9153ce410472ff7a8729d382dc50fe62ec82a290 Mon Sep 17 00:00:00 2001 From: Luke Fritz Date: Mon, 18 Sep 2023 15:08:09 -0500 Subject: [PATCH] Make checkout step optional (patch) --- .github/workflows/deploy-to-sharepoint.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy-to-sharepoint.yaml b/.github/workflows/deploy-to-sharepoint.yaml index d179afb..b56d083 100644 --- a/.github/workflows/deploy-to-sharepoint.yaml +++ b/.github/workflows/deploy-to-sharepoint.yaml @@ -20,6 +20,10 @@ on: required: true type: string default: './dist/' + freshCheckout: + required: true + type: boolean + default: true runDefaultBuild: description: Whether or not to run the build script from the project's package.json file. required: false @@ -37,6 +41,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + if: inputs.runDefaultBuild == true with: submodules: recursive token: ${{ secrets.GIT_TOKEN_BASIC || github.token }}