diff --git a/deploy/action.yml b/deploy/action.yml index db16b37..ce27d46 100644 --- a/deploy/action.yml +++ b/deploy/action.yml @@ -5,6 +5,10 @@ branding: icon: 'upload-cloud' color: 'purple' inputs: + checkout: + description: Whether or not to checkout the repository you are currently working in + required: false + default: "true" repository: description: Repository containing deployment information required: true @@ -52,7 +56,7 @@ runs: run: | "$GITHUB_ACTION_PATH/../scripts/report-missing-inputs.pl" - name: Prepare for deployment - if: env.BRANCH == env.DEFAULT_BRANCH || github.event.pull_request + if: (inputs.checkout == 'true') && (env.BRANCH == env.DEFAULT_BRANCH || github.event.pull_request) env: BRANCH: ${{ github.head_ref || github.ref_name }} DEFAULT_BRANCH: ${{ inputs.default-branch }} diff --git a/release/action.yml b/release/action.yml index d37a919..fdbb939 100644 --- a/release/action.yml +++ b/release/action.yml @@ -5,6 +5,10 @@ branding: icon: 'upload-cloud' color: 'orange' inputs: + checkout: + description: Whether or not to checkout the repository you are currently working in + required: false + default: "true" repository: description: Repository containing test information required: true @@ -48,7 +52,7 @@ runs: with: needs-json: ${{ inputs.needs-json }} - name: Prepare for E2E Deployment - if: env.BRANCH == env.DEFAULT_BRANCH || github.event.pull_request + if: (inputs.checkout == 'true') && (env.BRANCH == env.DEFAULT_BRANCH || github.event.pull_request) env: BRANCH: ${{ github.head_ref || github.ref_name }} DEFAULT_BRANCH: ${{ inputs.default-branch }} diff --git a/scoverage/action.yml b/scoverage/action.yml index 25e4b4f..13fc7df 100644 --- a/scoverage/action.yml +++ b/scoverage/action.yml @@ -1,6 +1,10 @@ name: 'Scoverage Report' description: 'Generate Aggregate Scoverage Report' inputs: + checkout: + description: Whether or not to checkout the repository you are currently working in + required: false + default: "true" working-directory: description: "Directory containing Scala projects with scoverage data to aggregate" default: . @@ -28,6 +32,7 @@ runs: working-directory: ${{ inputs.working-directory }} - name: Checkout + if: ${{ inputs.checkout == 'true' }} uses: actions/checkout@v4 with: path: ${{ inputs.working-directory }} diff --git a/yarn/action.yml b/yarn/action.yml index 0a79308..97dd050 100644 --- a/yarn/action.yml +++ b/yarn/action.yml @@ -5,6 +5,10 @@ branding: icon: 'aperture' color: 'purple' inputs: + checkout: + description: Whether or not to checkout the repository you are currently working in + required: false + default: "true" npm-registry: description: "The npm registry from which to retrieve packages" default: "https://registry.npmjs.org/" @@ -93,6 +97,7 @@ runs: "$GITHUB_ACTION_PATH/../scripts/report-missing-inputs.pl" - name: Checkout + if: ${{ inputs.checkout == 'true' }} uses: actions/checkout@v4 - name: Enable corepack