Sync Auto-Pay Pipe #2
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: Sync Auto-Pay Pipe | |
on: | |
workflow_dispatch: | |
inputs: | |
branch_name: | |
description: 'Branch name for the PR' | |
required: true | |
default: 'feat/add-auto-pay-pipe' | |
commit_message: | |
description: 'Commit message' | |
required: true | |
default: 'feat: add auto-pay pipe' | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source Repo | |
uses: actions/checkout@v4 | |
with: | |
path: source-repo | |
- name: Checkout Target Repo | |
uses: actions/checkout@v4 | |
with: | |
repository: mediar-ai/screenpipe | |
path: target-repo | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Configure Git in Target Repo | |
run: | | |
cd target-repo | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git checkout -b ${{ github.event.inputs.branch_name }} | |
- name: Sync Directory | |
run: | | |
rm -rf target-repo/pipes/auto-pay | |
mkdir -p target-repo/pipes/auto-pay | |
cp -r source-repo/pipes/auto-pay/* target-repo/pipes/auto-pay/ | |
- name: Commit and Push Changes | |
run: | | |
cd target-repo | |
git add . | |
git commit -m "${{ github.event.inputs.commit_message }}" | |
git push origin ${{ github.event.inputs.branch_name }} | |
- name: Create Pull Request | |
uses: repo-sync/pull-request@v2 | |
with: | |
source_branch: ${{ github.event.inputs.branch_name }} | |
destination_repository: "mediar-ai/screenpipe" | |
destination_branch: "main" | |
pr_title: "${{ github.event.inputs.commit_message }}" | |
pr_body: | | |
🤖 Auto-generated PR to sync auto-pay pipe | |
This PR adds the auto-pay pipe which enables automatic payment processing using the Wise API. | |
### Features: | |
- Automatic payment detection | |
- Wise API integration | |
- Production/Sandbox mode support | |
### Configuration: | |
The pipe requires the following configuration: | |
- `wiseApiKey`: Wise API Key | |
- `wiseProfileId`: Wise Profile ID | |
- `enableProduction`: Boolean to toggle production mode | |
Please review the changes and ensure they meet the project's standards. | |
pr_reviewer: "mediar-ai/maintainers" | |
pr_label: "enhancement,pipe" | |
github_token: ${{ secrets.GH_TOKEN }} |