Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Fix workflows sending messages to Slack (#5168)
Krystle Salazar5b16cf15f18b
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.ymlindex b5a2a03a2..000aa6f81 100644--- a/.github/workflows/ci_cd.yml+++ b/.github/workflows/ci_cd.yml@@ -1449,7 +1449,6 @@ jobs:- name: Send reportuses: slackapi/slack-github-action@v2with:+ webhook: ${{ secrets.SLACK_OV_ALERTS_WEBHOOK_URL }}+ webhook-type: incoming-webhookpayload: ${{ steps.report.outputs.payload }}- env:- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_OV_ALERTS_WEBHOOK_URL }}- SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOKdiff --git a/.github/workflows/discussion_ping.yml b/.github/workflows/discussion_ping.ymlindex ec2acbe5e..5d2623024 100644--- a/.github/workflows/discussion_ping.yml+++ b/.github/workflows/discussion_ping.yml@@ -16,13 +16,13 @@ jobs:discussion_title: ${{ format('{0}', github.event.discussion.title) }}discussion_author: ${{ github.event.discussion.user.login }}discussion_repo: ${{ github.event.repository.full_name }}- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}- SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOKsteps:- name: Send notification for new discussionid: slackuses: slackapi/slack-github-action@v2with:+ webhook: ${{ secrets.SLACK_WEBHOOK_URL }}+ webhook-type: incoming-webhookpayload: |{"text": "New discussion opened by ${{ env.discussion_author }} in ${{ env.discussion_repo }}: #${{ env.discussion_number }} - ${{ env.discussion_title }}",diff --git a/.github/workflows/pr_limit_reminders.yml b/.github/workflows/pr_limit_reminders.ymlindex e6877fab6..68197d8e1 100644--- a/.github/workflows/pr_limit_reminders.yml+++ b/.github/workflows/pr_limit_reminders.yml@@ -33,8 +33,6 @@ jobs:env:pr_count: ${{ needs.analyze-user-prs.outputs.pr_count }}slack_id: ${{ needs.analyze-user-prs.outputs.slack_id }}- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DM_WEBHOOK_URL }}- SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOKsteps:- name: Set required review countrun: |@@ -43,6 +41,8 @@ jobs:id: slackuses: slackapi/slack-github-action@v2with:+ webhook: ${{ secrets.SLACK_DM_WEBHOOK_URL }}+ webhook-type: incoming-webhook# Note: We cannot use the YAML folded chomping block syntax here (`>`) because# GitHub Actions does not support it (they only support a subset of YAML):# https://github.com/actions/runner/issues/418#issuecomment-612928525diff --git a/.github/workflows/pr_ping.yml b/.github/workflows/pr_ping.ymlindex 7c5be96d4..55ba44091 100644--- a/.github/workflows/pr_ping.yml+++ b/.github/workflows/pr_ping.yml@@ -19,8 +19,6 @@ jobs:runs-on: ubuntu-latestenv:EVENT_ACTION: ${{ github.event.action }}- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}- SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOKsteps:- name: Write payload to fileuses: actions/github-script@v7@@ -53,4 +51,6 @@ jobs:- name: Send Slack notificationuses: slackapi/slack-github-action@v2with:+ webhook: ${{ secrets.SLACK_WEBHOOK_URL }}+ webhook-type: incoming-webhookpayload-file-path: /tmp/pr_ping_payload.json