From 197ca8e43b201707003355572466c116ec2b427f Mon Sep 17 00:00:00 2001 From: Jonathan Innis Date: Fri, 23 Feb 2024 13:05:23 -0800 Subject: [PATCH] ci: Dry run prepare-website on merge to main (#5721) --- .github/workflows/dryrun-gen-pr.yaml | 13 +++++++++++++ .github/workflows/{docgen.yaml => dryrun-gen.yaml} | 7 +++++-- .../{pr-snapshot.yaml => snapshot-pr.yaml} | 4 ++-- .github/workflows/snapshot.yaml | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/dryrun-gen-pr.yaml rename .github/workflows/{docgen.yaml => dryrun-gen.yaml} (83%) rename .github/workflows/{pr-snapshot.yaml => snapshot-pr.yaml} (98%) diff --git a/.github/workflows/dryrun-gen-pr.yaml b/.github/workflows/dryrun-gen-pr.yaml new file mode 100644 index 000000000000..d759bf65f851 --- /dev/null +++ b/.github/workflows/dryrun-gen-pr.yaml @@ -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 diff --git a/.github/workflows/docgen.yaml b/.github/workflows/dryrun-gen.yaml similarity index 83% rename from .github/workflows/docgen.yaml rename to .github/workflows/dryrun-gen.yaml index 85227ed52697..bbf434d04f79 100644 --- a/.github/workflows/docgen.yaml +++ b/.github/workflows/dryrun-gen.yaml @@ -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/configure-aws-credentials@v4.0.1 if: github.repository == 'aws/karpenter-provider-aws' @@ -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 diff --git a/.github/workflows/pr-snapshot.yaml b/.github/workflows/snapshot-pr.yaml similarity index 98% rename from .github/workflows/pr-snapshot.yaml rename to .github/workflows/snapshot-pr.yaml index e2237e37861c..7068445d5fc0 100644 --- a/.github/workflows/pr-snapshot.yaml +++ b/.github/workflows/snapshot-pr.yaml @@ -1,4 +1,4 @@ -name: PullRequestSnapshot +name: SnapshotPR on: workflow_run: workflows: @@ -6,7 +6,7 @@ on: types: - completed jobs: - release: + snapshot: permissions: id-token: write pull-requests: write diff --git a/.github/workflows/snapshot.yaml b/.github/workflows/snapshot.yaml index 17f47c86cd44..041d2fce8940 100644 --- a/.github/workflows/snapshot.yaml +++ b/.github/workflows/snapshot.yaml @@ -5,7 +5,7 @@ on: - 'main' - 'release-v*' jobs: - release: + snapshot: permissions: id-token: write # aws-actions/configure-aws-credentials@v4.0.1 if: github.repository == 'aws/karpenter-provider-aws'