README to documentation synchro #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create documentation PR | |
on: | |
# Trigger the workflow on pull requests targeting the main branch | |
pull_request: | |
types: [assigned, unassigned, opened, reopened, synchronize, edited, labeled, unlabeled, edited, closed] | |
branches: | |
- main | |
jobs: | |
create_documentation_pr: | |
if: github.event.action != 'closed' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out current repository code | |
uses: actions/checkout@v2 | |
- name: Create the documentation pull request | |
uses: apivideo/api.video-create-readme-file-pull-request-action@main | |
with: | |
source-file-path: "README.md" | |
destination-repository: apivideo/api.video-api-client-generator | |
destination-path: templates/documentation/sdks/player | |
destination-filename: apivideo-hlsjs-analytics.md | |
pat: "${{ secrets.PAT }}" | |