-
Notifications
You must be signed in to change notification settings - Fork 4
Copy docs workflow #404
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
base: develop
Are you sure you want to change the base?
Copy docs workflow #404
Conversation
Vercel Previews Deployed
|
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "---" >> $GITHUB_STEP_SUMMARY | ||
|
||
- name: Checkout workflow ref, ONLY USED FOR TESTING WILL REUSE RELEASE BRANCH CHECKOUT IN PROD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❗ This step is only required for testing, will be removed after ❗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks and works great! The workflow was really fast. I have a few nitpick comments. Also, do we need to change the PR opener from you to hashibot/an automated account?
|
||
```mermaid | ||
graph LR | ||
A[terraform-docs-common] -->|copy `/cloud-docs/*` contents<br/>alongside `/enterprise/*` contents| B[ptfe-releases] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The /cloud-docs/*
and /enterprise/*
are showing as Unsupported markdown
in the rich diff
const sourcePath = core.getInput('source_path') | ||
const targetPath = core.getInput('target_path') | ||
const newTFEVersion = core.getInput('new_TFE_version') | ||
// const newTFEVersion = 'v000011-1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment can be removed
Ticket
Description
Adds the "Copy Docs" workflow from mktg-content-workflows to UDR.
What this workflow does
On the selected release branch, it copies over terraform-docs-common into ptfe-releases and creates two PRs:
ptfe-releases
PR which is a new versionFuture work
Once this work lands in main a few variables will have to be changed:
Testing
gh workflow run "Copy Cloud Docs For TFE" --ref "rn/add-copy-docs-workflow" --field branch="ptfe-releases/v000011-1"
The branch
ptfe-releases/v000011-1
is already made for you.