Skip to content

Commit

Permalink
Updated action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 6, 2021
1 parent 1c8e2cd commit 86bf66c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 82 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,20 @@ jobs:
with:
files: |
README.md
- run: |
cat README.md
# - name: README.md changed
# if: steps.verify_changed_files.outputs.files_changed == 'true'
# run: |
# echo "README.md has uncommited changes"
# exit 1
- name: README.md changed
if: steps.verify_changed_files.outputs.files_changed == 'true'
run: |
echo "README.md has uncommited changes"
exit 1
# - name: Create Pull Request
# if: failure()
# uses: peter-evans/create-pull-request@v3
# with:
# base: "main"
# title: "Updated README.md"
# branch: "chore/update-readme"
# commit-message: "Updated README.md"
# body: "Updated README.md"
# token: ${{ secrets.PAT_TOKEN }}
- name: Create Pull Request
if: failure()
uses: peter-evans/create-pull-request@v3
with:
base: "main"
title: "Updated README.md"
branch: "chore/update-readme"
commit-message: "Updated README.md"
body: "Updated README.md"
token: ${{ secrets.PAT_TOKEN }}
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ Auto generate documentation from actions.yml like [this](#inputs) by simply addi

## Inputs

<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->

| INPUT | REQUIRED | DEFAULT | DESCRIPTION |
|--------|----------|------------|-----------------------------|
| action | true | action.yml | Path to the action.yml file |
| output | true | README.md | Output file |

<!-- AUTO-DOC-INPUT:END -->

### 👆 This is autogenerated 👆 using:

Expand Down
57 changes: 0 additions & 57 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,5 @@

## Inputs

<!-- AUTO-DOC-INPUT:START - Do not remove or modify this section -->

| INPUT | REQUIRED | DEFAULT | DESCRIPTION |
|------------------------|----------|---------------------|--------------------------------|
| base_sha | false | | Specify a base commit SHA on |
| | | | used for comparing changes |
| files | false | | Check for changes using only |
| | | | this list of files (Defaults |
| | | | to the entire repo) |
| files_from_source_file | false | | Source file to populate the |
| | | | files input |
| path | false | | Specify a relative path under |
| | | | $GITHUB_WORKSPACE to locate |
| | | | the repository |
| separator | true | | Split character for array |
| | | | output |
| sha | true | ${{ github.sha }} | Specify a current commit SHA |
| | | | used for comparing changes |
| token | true | ${{ github.token }} | Github token or Repo Scoped |
| | | | Personal Access Token |

<!-- AUTO-DOC-INPUT:END -->

## Outputs

<!-- AUTO-DOC-OUTPUT:START - Do not remove or modify this section -->

| OUTPUT | DESCRIPTION | VALUE |
|--------------------------------|--------------------------------|-------|
| added_files | List of added files. | |
| all_changed_and_modified_files | List of all changed files. | |
| all_modified_files | List of all copied modified | |
| | and added files. | |
| any_changed | Return true only when any | |
| | files provided using the files | |
| | input have changed. | |
| any_deleted | Return true only when any | |
| | files provided using the files | |
| | input have been deleted. | |
| copied_files | List of copied files. | |
| deleted_files | List of deleted files. | |
| modified_files | List of modified files. | |
| only_changed | Return true when all files | |
| | provided using the files input | |
| | have changed. | |
| only_deleted | Return true when all files | |
| | provided using the files input | |
| | have been deleted. | |
| other_changed_files | Return list of changed files | |
| | not listed in the files input. | |
| other_deleted_files | Return list of deleted files | |
| | not listed in the files input. | |
| renamed_files | List of renamed files. | |
| type_changed_files | List of files that had type | |
| | changes. | |
| unknown_files | List of unknown files. | |
| unmerged_files | List of unmerged files. | |

<!-- AUTO-DOC-OUTPUT:END -->

0 comments on commit 86bf66c

Please sign in to comment.