Copy Docs to Talawa Docs #16976
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: Copy Docs to Talawa Docs | |
on: | |
schedule: | |
- cron: '*/5 * * * *' | |
jobs: | |
copy-docs-to-talawa-docs: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/automated-docs' | |
# needs: Generate-Documentation | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dmnemec/[email protected] | |
env: | |
API_TOKEN_GITHUB: ${{secrets.TALAWA_DOCS_SYNC}} | |
with: | |
source_file: 'talawa-api-docs/' | |
destination_repo: 'PalisadoesFoundation/talawa-docs' | |
destination_branch: 'develop' | |
destination_folder: 'docs/' | |
user_email: '${{env.email}}' | |
user_name: '${{github.actor}}' | |
commit_message: 'Talawa API docs updated' |