Skip to content

Commit

Permalink
ci: Dry run prepare-website on merge to main (#5721)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Feb 23, 2024
1 parent c38f83c commit 197ca8e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/dryrun-gen-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: DryRunGenPR
on:
pull_request:
workflow_dispatch:
jobs:
dryrun-gen:
if: github.repository == 'aws/karpenter-provider-aws'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: make prepare-website
env:
GIT_TAG: v0.10000.0 # Mock version for testing website generation
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: DocGenCI
name: DryRunGen
on:
push:
branches:
- 'main'
- 'release-v*'
jobs:
docgen-ci:
dryrun-gen:
permissions:
id-token: write # aws-actions/[email protected]
if: github.repository == 'aws/karpenter-provider-aws'
Expand All @@ -21,3 +21,6 @@ jobs:
- run: make codegen
env:
ENABLE_GIT_PUSH: false
- run: make prepare-website
env:
GIT_TAG: v0.10000.0 # Mock version for testing website generation
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: PullRequestSnapshot
name: SnapshotPR
on:
workflow_run:
workflows:
- ApprovalComment
types:
- completed
jobs:
release:
snapshot:
permissions:
id-token: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'main'
- 'release-v*'
jobs:
release:
snapshot:
permissions:
id-token: write # aws-actions/[email protected]
if: github.repository == 'aws/karpenter-provider-aws'
Expand Down

0 comments on commit 197ca8e

Please sign in to comment.