diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 1e4ba86..125c473 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -2,22 +2,23 @@ name: "DPC Static Site CI Workflow" on: workflow_dispatch: - + inputs: + deploy: + description: 'Deploy or just tag?' + type: boolean + default: true + required: true + jobs: build: name: "Build and Test" runs-on: ubuntu-latest steps: - - name: "Checkout code" - uses: actions/checkout@v2 - - name: "Build and Test" + - name: Run if true + if: ${{ inputs.deploy }} + run: | + echo 'Told to deploy' + - name: Run if false + if: ${{ !inputs.deploy }} run: | - mkdir -p _site - mkdir -p .jekyll-cache - ./scripts/build_and_test.sh - - name: "Check for broken links" - uses: lycheeverse/lychee-action@v1 - with: - fail: true - jobSummary: true - args: --no-progress --accept '200..=299, 401, 403, 405' . + echo 'Told not to deploy' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3cbba17..704caae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,6 @@ jobs: repo_ref: main secrets: inherit deploy: - if: ${{ 'foo' == 'bar' }} name: Deploy to Staging needs: tag_repo uses: ./.github/workflows/deploy.yml