Merge pull request #64 from sourcefuse/readme-update #18
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: Update-docs | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
paths: | |
- 'README.md' | |
jobs: | |
transfer-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Pushes readme file | |
uses: dmnemec/copy_file_to_another_repo_action@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
API_TOKEN_GITHUB: ${{ secrets.ARC_DOCS_API_TOKEN_GITHUB }} | |
with: | |
source_file: 'README.md' | |
destination_repo: 'sourcefuse/arc-docs' | |
destination_folder: 'docs/arc-iac-docs/modules/terraform-aws-ref-arch-db' | |
user_email: '[email protected]' | |
user_name: ${{ github.actor }} | |
commit_message: ${{ github.event.head_commit.message }} | |
- name: Pushes Module Usage Guide | |
uses: dmnemec/copy_file_to_another_repo_action@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
API_TOKEN_GITHUB: ${{ secrets.ARC_DOCS_API_TOKEN_GITHUB }} | |
with: | |
source_file: 'docs/module-usage-guide/README.md' | |
destination_repo: 'sourcefuse/arc-docs' | |
destination_folder: 'docs/arc-iac-docs/modules/terraform-aws-ref-arch-db/docs/module-usage-guide' | |
user_email: '[email protected]' | |
user_name: ${{ github.actor }} | |
commit_message: ${{ github.event.head_commit.message }} |