Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a unique branch name each time we generate CRD docs #2397

Merged
merged 2 commits into from
Jul 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use run number in branch name to avoid collisions
  • Loading branch information
theunrepentantgeek committed Jul 19, 2022
commit c9fcac4aa596b0ed199de55d133db8ee0c8cd430
6 changes: 3 additions & 3 deletions .github/workflows/api-docs-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with:
branch: 'bot/update-api-docs'
branch: ${{ format('bot/update-api-docs-{0}', github.run_number) }}

- name: Checkout code
uses: actions/checkout@v3
with:
ref: bot/update-api-docs
ref: ${{ format('bot/update-api-docs-{0}', github.run_number) }}
fetch-depth: 0 # required to access tags
submodules: 'true'

Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GH_PAT }}
source_branch: bot/update-api-docs
source_branch: ${{ format('bot/update-api-docs-{0}', github.run_number) }}
target_branch: main
title: "[Automated] Add API Docs"
body: "Add new API Docs for latest release"
Expand Down