|
| 1 | +--- |
| 2 | +name: Update-docs |
| 3 | +on: # yamllint disable-line rule:truthy |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | +jobs: |
| 8 | + transfer-file: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: Checkout |
| 12 | + uses: actions/checkout@v3 |
| 13 | + - name: Pushes Readme file |
| 14 | + uses: dmnemec/copy_file_to_another_repo_action@main |
| 15 | + env: |
| 16 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 17 | + API_TOKEN_GITHUB: ${{ secrets.ARC_DOCS_API_TOKEN_GITHUB }} |
| 18 | + with: |
| 19 | + source_file: 'README.md' |
| 20 | + destination_repo: 'sourcefuse/arc-docs' |
| 21 | + destination_folder: 'docs/arc-iac-docs/modules/terraform-aws-arc-dynamodb' |
| 22 | + user_email: 'github-actions@github.com' |
| 23 | + user_name: ${{ github.actor }} |
| 24 | + commit_message: ${{ github.event.head_commit.message }} |
| 25 | + - name: Pushes to another repository |
| 26 | + uses: cpina/github-action-push-to-another-repository@main |
| 27 | + env: |
| 28 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 29 | + API_TOKEN_GITHUB: ${{ secrets.ARC_DOCS_API_TOKEN_GITHUB }} |
| 30 | + with: |
| 31 | + source-directory: 'static' |
| 32 | + destination-github-username: 'sourcefuse' |
| 33 | + destination-repository-name: 'arc-docs' |
| 34 | + target-directory: 'docs/arc-iac-docs/modules/terraform-aws-arc-db/static' |
| 35 | + user-email: 'github-actions@github.com' |
| 36 | + user-name: ${{ github.actor }} |
| 37 | + target-branch: main |
| 38 | + commit-message: ${{ github.event.head_commit.message }} |
| 39 | + - name: Pushes Module Usage Guide |
| 40 | + uses: dmnemec/copy_file_to_another_repo_action@main |
| 41 | + env: |
| 42 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 43 | + API_TOKEN_GITHUB: ${{ secrets.ARC_DOCS_API_TOKEN_GITHUB }} |
| 44 | + with: |
| 45 | + source_file: 'docs/module-usage-guide/README.md' |
| 46 | + destination_repo: 'sourcefuse/arc-docs' |
| 47 | + destination_folder: 'docs/arc-iac-docs/modules/terraform-aws-arc-db/docs/module-usage-guide' |
| 48 | + user_email: 'github-actions@github.com' |
| 49 | + user_name: ${{ github.actor }} |
| 50 | + commit_message: ${{ github.event.head_commit.message }} |
0 commit comments