Skip to content

Commit

Permalink
ci: sync code to open-source repo
Browse files Browse the repository at this point in the history
  • Loading branch information
shanexi committed Sep 19, 2024
1 parent bf33622 commit 45916d9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync-open-source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Sync open-source

on:
pull_request:
paths:
- "web/apps/web/**"
- "web/packages/**"
- ".github/**"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: web
target-directory: web
destination-github-username: "myshell-ai"
destination-repository-name: "open-source"
target-branch: ${{ github.head_ref }}
create-target-branch-if-needed: true
# https://github.com/orgs/community/discussions/25191
commit-message: See ${{github.repository}}@${{ github.event.pull_request.head.sha }}

- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY

0 comments on commit 45916d9

Please sign in to comment.