2021-10-09 20:14:20 +01:00
|
|
|
name: Copy to docs repo
|
|
|
|
|
2021-10-09 20:05:39 +01:00
|
|
|
on:
|
|
|
|
workflow_dispatch: # Manually start a workflow
|
|
|
|
push:
|
|
|
|
branches: development
|
|
|
|
paths:
|
|
|
|
- 'BUILDS.md'
|
|
|
|
- 'I2CDEVICES.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
copy_change:
|
|
|
|
runs-on: ubuntu-latest
|
2022-04-28 11:33:57 +01:00
|
|
|
if: github.repository == 'arendst/Tasmota'
|
2021-10-09 20:05:39 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-09 20:32:26 +01:00
|
|
|
- name: Push I2CDevices.md to https://github.com/Tasmota/docs
|
2021-10-16 18:43:16 +01:00
|
|
|
uses: Jason2866/copy_file_to_another_repo_action@main
|
2021-10-09 20:05:39 +01:00
|
|
|
env:
|
|
|
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
|
|
|
with:
|
2021-10-09 20:14:20 +01:00
|
|
|
source_file: 'I2CDEVICES.md'
|
2021-10-09 20:05:39 +01:00
|
|
|
destination_repo: 'Tasmota/docs'
|
|
|
|
destination_branch: 'development'
|
|
|
|
destination_folder: 'docs'
|
|
|
|
user_email: 'github-actions@github.com'
|
|
|
|
user_name: 'github-actions'
|
2021-10-09 20:32:26 +01:00
|
|
|
commit_message: 'I2CDevices.md changed'
|
|
|
|
- name: Push Builds.md to https://github.com/Tasmota/docs
|
2021-10-16 18:43:16 +01:00
|
|
|
uses: Jason2866/copy_file_to_another_repo_action@main
|
2021-10-09 20:32:26 +01:00
|
|
|
env:
|
|
|
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
|
|
|
with:
|
|
|
|
source_file: 'BUILDS.md'
|
|
|
|
destination_repo: 'Tasmota/docs'
|
|
|
|
destination_branch: 'development'
|
|
|
|
destination_folder: 'docs'
|
|
|
|
user_email: 'github-actions@github.com'
|
|
|
|
user_name: 'github-actions'
|
|
|
|
commit_message: 'Builds.md changed'
|