-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create initial v3.0.0 and cannoical tags * ab#57356 Transition to doctool * ab#57423 Update all actions to use v3 tag * use keyfactor org actions * use actions v3 for generate-readme.yml * minor update to readme --------- Co-authored-by: Michael Henderson <[email protected]>
- Loading branch information
1 parent
83d4feb
commit 48414f9
Showing
3 changed files
with
25 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,44 +5,14 @@ on: | |
token: | ||
description: 'Secret token from caller workflow to approve readme' | ||
required: true | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
generate-readme: | ||
update-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout project | ||
- uses: Keyfactor/doctool@main | ||
with: | ||
token: ${{ secrets.token }} | ||
|
||
- uses: actions/checkout@v4 | ||
name: Checkout templates | ||
with: | ||
repository: 'Keyfactor/actions' | ||
path: './actions/' | ||
token: ${{ secrets.token }} | ||
ref: 'v2' # Update this tag for testing new readme templates branches | ||
- uses: Keyfactor/[email protected] | ||
name: Merge template and manifest with jinja2 | ||
with: | ||
template: ./actions/readme-templates/readme.md.tpl | ||
output_file: README.md | ||
data_file: | | ||
integration-manifest.json | ||
./actions/readme-templates/readme_shared_data.json | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Show generated README.md | ||
run: echo $(cat README.md) | ||
|
||
- uses: Keyfactor/[email protected] | ||
name: Commit generated README | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
add: README.md --force | ||
message: Update generated README | ||
author_name: Keyfactor | ||
author_email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters