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

Test Changes for PR #2

Merged
merged 28 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
90910e9
new test
ahernandez411 Jan 26, 2024
d5fd8af
add missing property
ahernandez411 Jan 26, 2024
fd1a06f
more changes
ahernandez411 Jan 26, 2024
b77ba67
changes
ahernandez411 Jan 26, 2024
804c131
add inputs for save location specification
ahernandez411 Feb 5, 2024
d3da200
add inputs for save location specification
ahernandez411 Feb 5, 2024
19e1be5
new changes
ahernandez411 Feb 5, 2024
3cec44b
only attempt wiki checkout of bool flag it true
ahernandez411 Feb 5, 2024
4383a67
change if blocks to look for strings
ahernandez411 Feb 5, 2024
b238e79
set inputs to envs
ahernandez411 Feb 5, 2024
3df71d5
fully qualify input
ahernandez411 Feb 5, 2024
fdb5925
move env usage below runs
ahernandez411 Feb 5, 2024
a98d39f
move env up
ahernandez411 Feb 5, 2024
cdc089a
add step for input conversions
ahernandez411 Feb 5, 2024
0d2445d
setup inputs as outputs in a step
ahernandez411 Feb 5, 2024
339bb0f
use new way of setting output
ahernandez411 Feb 5, 2024
14e3c2d
add set -x
ahernandez411 Feb 5, 2024
cd70e93
correct typo
ahernandez411 Feb 5, 2024
f2d673d
add save to branch
ahernandez411 Feb 5, 2024
b5132b0
remove cd wiki
ahernandez411 Feb 5, 2024
1aa5d48
add more to test-on-pr to check for artifact and its contents
ahernandez411 Feb 5, 2024
46da84d
add more prints
ahernandez411 Feb 5, 2024
ef73243
add more steps to test
ahernandez411 Feb 5, 2024
3167f13
add cleanup step
ahernandez411 Feb 5, 2024
0e60e5f
small changes
ahernandez411 Feb 5, 2024
dabbe5f
pass in token
ahernandez411 Feb 5, 2024
e3ecafa
Merge branch 'main' of github.com:ahernandez411/action-workflow-docum…
ahernandez411 Feb 5, 2024
d84bc89
update .gitignore
ahernandez411 Feb 5, 2024
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
1 change: 1 addition & 0 deletions .github/workflows/test-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
if: always()
uses: ./
with:
github-pat: ${{ secrets.GITHUB_TOKEN }}
save-to-artifact: "true"
save-to-branch: "false"
save-to-wiki: "false"
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
WORKFLOWS.md
wiki
.env
.vscode
Expand Down
14 changes: 13 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Document Action Workflows in Repo Wiki
description: Reads the workflow files in the repo and creates a wiki page with the workflow details.

inputs:
github-pat:
description: The github personal access token used for interactions with github
required: true
save-to-artifact:
description: If true, save to documentation as an artifact
required: true
Expand All @@ -13,6 +16,10 @@ inputs:
description: If true, save to documentation to repository's wiki
required: true

permissions:
contents: write
wikis: write

runs:
using: composite
steps:
Expand Down Expand Up @@ -42,6 +49,7 @@ runs:
with:
repository: ${{ github.repository }}.wiki
path: wiki
token: ${{ inputs.github-pat }}

- name: Document Workflows
shell: python
Expand Down Expand Up @@ -289,7 +297,9 @@ runs:
cd wiki
git config --global user.name "action-workflow-documenter"
git config --global user.email "[email protected]"
git add .
git remote set-url origin https://x-access-token:${{ inputs.github-pat }}@github.com/$GITHUB_REPOSITORY

git add .
git diff-index --quiet HEAD || git commit -m "Update wiki with latest workflow documentation" && git push

- name: Save Changes to Branch
Expand All @@ -299,6 +309,8 @@ runs:
set -x
git config --global user.name "action-workflow-documenter"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ inputs.github-pat }}@github.com/$GITHUB_REPOSITORY

git add .
git checkout -b actions-documentation
git commit -m "Add actions documentation"
Expand Down
Loading