diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml new file mode 100644 index 0000000..02482d4 --- /dev/null +++ b/.github/workflows/ci-docs.yml @@ -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 }} \ No newline at end of file diff --git a/action.yml b/action.yml index 5b13eb1..f3e8e51 100644 --- a/action.yml +++ b/action.yml @@ -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"] ```