Skip to content

ci(release-please): setup release-please #5

ci(release-please): setup release-please

ci(release-please): setup release-please #5

Workflow file for this run

name: "Actions related to docs"
on:
push:
branches:
- main
paths:
- ".github/workflows/**"
- "docs/**"
jobs:
reusable-workflow-docs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Setup Node.js"
uses: actions/setup-node@v4
with:
node-version: 20
- name: "Run auto-doc (lib-license-checker"
uses: tj-actions/auto-doc@v3
with:
filename: "./.github/workflows/lib-license-checker.yml"
output: "./docs/workflows/lib-license-checker.md"
reusable: true
- name: "Build the lint config and run lint."
run: |
npm install
npm run build:ws
npm run lint
- name: "Check for changed files"
uses: tj-actions/verify-changed-files@v19
id: changed-files
with:
files: |
docs
- name: "Open a PR"
if: steps.changed-files.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
branch: "docs/workflows"
delete-branch: "true"
signoff: "true"
commit-message: "docs(workflows): regenerated reusable workflow docs"
title: "docs(workflows): regenerated reusable workflow docs"
body: |
Executed [auto-doc](https://github.com/tj-actions/auto-doc).
*Make sure to Close and Reopen this PR to run the available GitHub actions [1].*
[1]: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs