Skip to content

Commit

Permalink
test inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdettmannnava committed Dec 17, 2024
1 parent 726869c commit 7671603
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7671603

Please sign in to comment.