Skip to content

Commit

Permalink
Update copy_change.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dwight9339 authored Dec 13, 2024
1 parent 79643c8 commit e66f833
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/copy_change.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# name: Copy to docs repo
name: Copy to docs repo

# on:
# workflow_dispatch: # Manually start a workflow
# push:
# branches: development
# paths:
# - 'BUILDS.md'
# - 'I2CDEVICES.md'
on:
workflow_dispatch: # Manually start a workflow
push:
branches: development
paths:
- 'BUILDS.md'
- 'I2CDEVICES.md'

# jobs:
jobs:

# copy_change:
# runs-on: ubuntu-latest
# if: github.repository == 'arendst/Tasmota'
# steps:
# - uses: actions/checkout@v4
# - name: Push I2CDevices.md to https://github.com/Tasmota/docs
# uses: Jason2866/copy_file_to_another_repo_action@main
# env:
# API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
# with:
# source_file: 'I2CDEVICES.md'
# destination_repo: 'Tasmota/docs'
# destination_branch: 'development'
# destination_folder: 'docs'
# user_email: 'github-actions@github.com'
# user_name: 'github-actions'
# commit_message: 'I2CDevices.md changed'
# - name: Push Builds.md to https://github.com/Tasmota/docs
# uses: Jason2866/copy_file_to_another_repo_action@main
# 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'
copy_change:
runs-on: ubuntu-latest
if: github.repository == 'arendst/Tasmota'
steps:
- uses: actions/checkout@v4
- name: Push I2CDevices.md to https://github.com/Tasmota/docs
uses: Jason2866/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'I2CDEVICES.md'
destination_repo: 'Tasmota/docs'
destination_branch: 'development'
destination_folder: 'docs'
user_email: 'github-actions@github.com'
user_name: 'github-actions'
commit_message: 'I2CDevices.md changed'
- name: Push Builds.md to https://github.com/Tasmota/docs
uses: Jason2866/copy_file_to_another_repo_action@main
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'

0 comments on commit e66f833

Please sign in to comment.