From 3e8510696ca82597b4eae7f0004b69e2f756d5aa Mon Sep 17 00:00:00 2001 From: giomella Date: Mon, 20 Jan 2025 10:28:35 +0100 Subject: [PATCH] removed useless step --- .github/workflows/integration_test.yml | 36 +------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 5552bec..e75829d 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -78,38 +78,4 @@ jobs: message_format: '{emoji} <{run_url}|{workflow}> {status_message} in <{repo_url}|{repo}> in ${{ inputs.environment }}' footer: 'Linked to <{workflow_url}| workflow file>' env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - - delete_github_deployments: - runs-on: ubuntu-latest - needs: integration_test - if: ${{ always() }} - steps: - - name: Delete Previous deployments - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 - env: - SHA_HEAD: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha}} - with: - script: | - const { SHA_HEAD } = process.env - - const deployments = await github.rest.repos.listDeployments({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: SHA_HEAD - }); - await Promise.all( - deployments.data.map(async (deployment) => { - await github.rest.repos.createDeploymentStatus({ - owner: context.repo.owner, - repo: context.repo.repo, - deployment_id: deployment.id, - state: 'inactive' - }); - return github.rest.repos.deleteDeployment({ - owner: context.repo.owner, - repo: context.repo.repo, - deployment_id: deployment.id - }); - }) - ); \ No newline at end of file + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file