From 4d8c771ff8be86fc20d3546bf64bbe1212b3a399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giovanni=20Lagan=C3=A0?= Date: Sun, 17 Nov 2024 14:55:11 +0100 Subject: [PATCH] chore: cleaned main ci --- ...{deploy-prod-and-test.yml => partitellebot-deploy.yml} | 8 +------- .../{deploy-test.yml => partitellebottest-deploy.yml} | 5 ++++- 2 files changed, 5 insertions(+), 8 deletions(-) rename .github/workflows/{deploy-prod-and-test.yml => partitellebot-deploy.yml} (52%) rename .github/workflows/{deploy-test.yml => partitellebottest-deploy.yml} (74%) diff --git a/.github/workflows/deploy-prod-and-test.yml b/.github/workflows/partitellebot-deploy.yml similarity index 52% rename from .github/workflows/deploy-prod-and-test.yml rename to .github/workflows/partitellebot-deploy.yml index 34e6bfd..b51be41 100644 --- a/.github/workflows/deploy-prod-and-test.yml +++ b/.github/workflows/partitellebot-deploy.yml @@ -1,4 +1,4 @@ -name: PartitelleBot + PartitelleBotTest +name: PartitelleBot on: push: @@ -14,9 +14,3 @@ jobs: service-id: ${{ secrets.RENDER_SERVICE_ID }} api-key: ${{ secrets.RENDER_API_KEY }} wait-for-success: true - - name: Deploy to PartitelleBotTest - uses: johnbeynon/render-deploy-action@747373cdb7b9b3f561438e063ee0815b71584f1b - with: - service-id: ${{ secrets.RENDER_TEST_SERVICE_ID }} - api-key: ${{ secrets.RENDER_TEST_API_KEY }} - wait-for-success: true diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/partitellebottest-deploy.yml similarity index 74% rename from .github/workflows/deploy-test.yml rename to .github/workflows/partitellebottest-deploy.yml index 54a5b1e..16e4b35 100644 --- a/.github/workflows/deploy-test.yml +++ b/.github/workflows/partitellebottest-deploy.yml @@ -1,6 +1,9 @@ name: PartitelleBotTest on: + push: + branches: + - main pull_request: branches: - main @@ -8,7 +11,7 @@ on: jobs: deploy: - if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy-partitellebot-test') }} + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'deploy-partitellebot-test') }} runs-on: ubuntu-latest steps: - name: Deploy to PartitelleBotTest