Skip to content

Commit

Permalink
ci: Add CI workflow to generate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabidick22 committed Jul 7, 2022
1 parent 71dd0b8 commit 2a5c707
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update Documentation

on:
pull_request:
branches:
- main
paths:
- 'action.yml'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: npm install -g action-docs

- run: action-docs -u

- name: Update README.md file
uses: test-room-7/action-update-file@v1
if: github.event_name == 'pull_request'
with:
file-path: README.md
commit-msg: Update github actions documentation
github-token: ${{ github.token }}
branch: ${{ github.head_ref }}
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ outputs:
paths_changed:
description: >
List of changed paths, example:
```
["dist", "dist/data"]
```
file_changed:
description: >
List of changed files, example:
```
["dist/main.tf", "dist/index.js"]
```
Expand Down

0 comments on commit 2a5c707

Please sign in to comment.