From a10c631854e46dad86d4215750bfd2f97da09f44 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Wed, 3 Jan 2024 02:29:57 +0530 Subject: [PATCH 1/4] Create sarthi.yml --- .github/workflows/sarthi.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/sarthi.yml diff --git a/.github/workflows/sarthi.yml b/.github/workflows/sarthi.yml new file mode 100644 index 0000000..6a8f746 --- /dev/null +++ b/.github/workflows/sarthi.yml @@ -0,0 +1,22 @@ +name: Sarthi Preview Environments +on: + pull_request_target: + types: [ opened, closed, reopened, synchronize ] + push: + # delete preview environments when branches are deleted + delete: + +jobs: + sarthi_job: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Sarthi + uses: tushar5526/sarthi-deploy@main + with: + compose_file: docker-compose.yaml # override this with the compose file name + sarthi_server_url: ${{ secrets.SARTHI_SERVER_URL }} + sarthi_secret: ${{ secrets.SARTHI_SECRET }} # Secret text generate while setting up the server + repo_token: ${{ secrets.GITHUB_TOKEN }} From beab4cf52141ea450a67c4d8bab9f52cdeccb586 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Wed, 3 Jan 2024 02:31:49 +0530 Subject: [PATCH 2/4] Update sarthi.yml --- .github/workflows/sarthi.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sarthi.yml b/.github/workflows/sarthi.yml index 6a8f746..3dd5323 100644 --- a/.github/workflows/sarthi.yml +++ b/.github/workflows/sarthi.yml @@ -2,6 +2,8 @@ name: Sarthi Preview Environments on: pull_request_target: types: [ opened, closed, reopened, synchronize ] + pull_request: + types: [ opened, closed, reopened, synchronize ] push: # delete preview environments when branches are deleted delete: From cfbd5e7b404664f041bfea1078b08be0b6aaef67 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Thu, 4 Jan 2024 00:20:59 +0530 Subject: [PATCH 3/4] Update sarthi.yml --- .github/workflows/sarthi.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sarthi.yml b/.github/workflows/sarthi.yml index 3dd5323..ebb25fb 100644 --- a/.github/workflows/sarthi.yml +++ b/.github/workflows/sarthi.yml @@ -16,9 +16,8 @@ jobs: uses: actions/checkout@v2 - name: Set up Sarthi - uses: tushar5526/sarthi-deploy@main + uses: tushar5526/sarthi-deploy@tushar5526-patch-1 with: compose_file: docker-compose.yaml # override this with the compose file name sarthi_server_url: ${{ secrets.SARTHI_SERVER_URL }} sarthi_secret: ${{ secrets.SARTHI_SECRET }} # Secret text generate while setting up the server - repo_token: ${{ secrets.GITHUB_TOKEN }} From 7d57dcf7e4d0f82650e9a87333d75082868ea691 Mon Sep 17 00:00:00 2001 From: Tushar <30565750+tushar5526@users.noreply.github.com> Date: Thu, 4 Jan 2024 00:24:58 +0530 Subject: [PATCH 4/4] Update sarthi.yml --- .github/workflows/sarthi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sarthi.yml b/.github/workflows/sarthi.yml index ebb25fb..4ad0eef 100644 --- a/.github/workflows/sarthi.yml +++ b/.github/workflows/sarthi.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v2 - name: Set up Sarthi - uses: tushar5526/sarthi-deploy@tushar5526-patch-1 + uses: tushar5526/sarthi-deploy@main with: compose_file: docker-compose.yaml # override this with the compose file name sarthi_server_url: ${{ secrets.SARTHI_SERVER_URL }}