From dcf50d11463184267aaf63230051658da0c608c4 Mon Sep 17 00:00:00 2001 From: Yee Kit Date: Thu, 25 Jan 2024 23:47:24 +0800 Subject: [PATCH] Create sync-to-deployment-fork.yml --- .github/workflows/sync-to-deployment-fork.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sync-to-deployment-fork.yml diff --git a/.github/workflows/sync-to-deployment-fork.yml b/.github/workflows/sync-to-deployment-fork.yml new file mode 100644 index 0000000..c783930 --- /dev/null +++ b/.github/workflows/sync-to-deployment-fork.yml @@ -0,0 +1,21 @@ +name: Sync to Deployment Fork +on: + push: + branches: + - main + +jobs: + sync-deployment-fork: + runs-on: ubuntu-latest + steps: + - uses: octokit/request-action@v2.1.9 + id: sync_deployment_fork + with: + route: POST /repos/{owner}/{repo}/merge-upstream + owner: JTC-Smart-Retrieval + repo: Smart-Retrieval-Deployment + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: "echo Sync Fork Success!: '${{ steps.sync_deployment_fork.outputs.data }}'" + - run: "echo Sync Fork Failed. Request failed with status '${{ steps.sync_deployment_fork.outputs.status }}'" + if: ${{ failure() }}