Skip to content

EPDocs - Dynamic Content PR creation #28

EPDocs - Dynamic Content PR creation

EPDocs - Dynamic Content PR creation #28

name: EPDocs - Dynamic Content PR creation
on: [workflow_dispatch]
jobs:
connect-with-edocs:
runs-on: ubuntu-latest
steps:
- name: Checkout X mono-repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get X Components Version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
with:
path: packages/x-components
- name: Get branch name
uses: nelonoel/[email protected]
- name: Trigger eDocs repository action
run: |
curl --request POST \
-u empathyco:${GITHUB_TOKEN} \
--header 'content-type: application/json' \
--url https://api.github.com/repos/empathyco/docs-empathy/actions/workflows/40134850/dispatches \
--data '{"ref": "main", "inputs": {"branchName": "${{ env.BRANCH_NAME }}", "version": "${{ steps.package-version.outputs.current-version }}"}}'
env:
GITHUB_TOKEN: ${{ secrets.SUPPORT_TOKEN }}