Skip to content

Commit

Permalink
feat(pub-techdocs): add input for running actions/checkout (#84)
Browse files Browse the repository at this point in the history
This option allows users to _not_ run `actions/checkout` of the current repo. This is useful in cases of generating docs in a previous workflow job.
  • Loading branch information
zzehring authored Apr 15, 2024
1 parent 6e9b07a commit d393a41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish-techdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
required: false
type: string
default: "."
checkout-repo:
description: "Whether to perform the `checkout` action at the start of the workflow. Setting to `false` is useful when generating docs in previous job. Default is `true`."
required: false
type: boolean
default: true

jobs:
generate-and-publish-docs:
Expand All @@ -28,6 +33,7 @@ jobs:
- id: checkout
name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
if: inputs.checkout-repo

- id: auth
name: Authenticate with Google Cloud
Expand Down

0 comments on commit d393a41

Please sign in to comment.