This composite (GitHub) action can be used to add or update metadata for Ydocs source repositories. Metadata like the author, create date and update date are fetched from the Git data. It only updates the metadata of files that were changed.
This action can be triggered from any private or public GitHub repository. GitHub external workflows needs to be enabled.
Follow these steps to create the Github action:
- Go to https://github.com and open the documentation repository.
- Open to the
Actionstab. - Select
Simple workflow->Configure - Change the name to something like
workflow.yml. - Copy the template below:
name: 'Documentation metadata processing flow'
on:
push:
branches:
- master
- releases/**
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Run build action
uses: ydentic/ydocs-metadata-processor@v1.0.13
with:
github-author-name: <insert author name>
github-author-email: <insert author email>
github-token: ${{ secrets.GITHUB_TOKEN }}
documentation-directory: <instert documentation folder (optional)>
show-debug-log: falseReplace the placeholders of the template:
- Mandatory: Replace
<insert author name>with the name of a service account in GitHub or just something recognizable for instance. "Developer" or "Documentation bot" - Mandatory: Replace
<insert author email>with the email of a service account in GitHub or just something recognizable for instance. "developer@companyname.com" or "documentation-bot@companyname.com" - Optional: You can change the name as you please. This is not really important for the process but is required for the workflow creation.
- Optional: You can edit the
branchesproperty to anything you'd like for as long as it matches branch names in your documentation repo. The workflow will not start otherwise. - Optional: You can replace
<instert documentation folder (optional)>with the name of a folder inside the documentation repository that contains the documentation. For instanceCustomer Manuals. Remove the entire line from the file if you don't want to customize it. - Optional: You can replace
show-debug-log: falsewithshow-debug-log: trueto enabled debug logging for the processor.
Don't include the
<and>around the placeholders.
Follow these steps to allow external actions:
- Go to https://github.com and open the documentation repository.
- Open to the
Settingstab. - Open
Actions->General. - Click on the radiobutton of
Allow all actions and resusable workflows. - Click on
Save.
Branch definition https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#using-filters

