⏫ Sync rule files #5459
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
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 21 8 * * * | |
workflow_run: | |
workflows: ["5whys-Ad-list-processing"] | |
types: | |
- completed | |
name: ⏫ Sync rule files | |
jobs: | |
copy-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Copy the 'post' folder | |
- name: Push posts | |
uses: dmnemec/copy_file_to_another_repo_action@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_file: 'rules/' # Folder to copy | |
destination_repo: '${{ secrets.PATH }}' # Target repo | |
destination_folder: '/' # Folder where to copy it | |
user_email: '${{ secrets.EMAIL1 }}' | |
user_name: '${{ secrets.NAME1 }}' | |
commit_message: "SYNC FROM SOURCE" | |
git_server: 'github.com' |