diff --git a/.github/config/pypi-release-slack-notification.yml b/.github/config/pypi-release-slack-notification.yml deleted file mode 100644 index e626380ab2..0000000000 --- a/.github/config/pypi-release-slack-notification.yml +++ /dev/null @@ -1,32 +0,0 @@ -pretext: Triggered via {{eventName}} of {{env.VERSION}} by {{actor}} -title: "Haystack PyPi release" - -text: | - - - {{#if (eq jobStatus "SUCCESS")}} - Haystack {{env.VERSION}} has been released on PyPi :rocket: - {{else if (eq jobStatus "FAILURE")}} - {{icon jobStatus}} Haystack {{env.VERSION}} PyPi release failed! {{icon jobStatus}} - {{else if (eq jobStatus "CANCELLED")}} - {{icon jobStatus}} Haystack {{env.VERSION}} PyPi release has been cancelled! {{icon jobStatus}} - {{/if}} - -fallback: |- - Haystack {{env.VERSION}} PyPi release status: {{jobStatus}} - -footer: >- - <{{repositoryUrl}}|{{repositoryName}}> <{{workflowRunUrl}}|{{workflow}} #{{runNumber}}> - -colors: - success: "#5DADE2" - failure: "#884EA0" - cancelled: "#A569BD" - default: "#7D3C98" - -icons: - success: ":white_check_mark:" - failure: ":x:" - cancelled: ":interrobang:" - skipped: ":interrobang:" - default: ":interrobang:" diff --git a/.github/workflows/pypi_release.yml b/.github/workflows/pypi_release.yml index ffd40c7fd9..7d86e814aa 100644 --- a/.github/workflows/pypi_release.yml +++ b/.github/workflows/pypi_release.yml @@ -29,14 +29,3 @@ jobs: HATCH_INDEX_USER: __token__ HATCH_INDEX_AUTH: ${{ secrets.HAYSTACK_AI_PYPI_TOKEN }} run: hatch publish -y - - - name: Notify Slack - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - VERSION: ${{ github.ref_name }} - if: always() - uses: act10ns/slack@v2 - with: - status: ${{ job.status }} - channel: "#haystack-notifications" - config: .github/config/pypi-release-slack-notification.yml