From 1a6d8869f263e375baa4baca7e4685920618fd7e Mon Sep 17 00:00:00 2001 From: Raz Ohad Date: Wed, 14 Jan 2026 20:22:33 +0700 Subject: [PATCH] update push to slack to use uploadsV2 (#480) --- .github/workflows/build.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 354c686a..89b47d5a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,10 +79,26 @@ jobs: - name: Push to Slack on PR merge if: ${{ github.event.pull_request.merged == true }} - run: | - curl -F file=@pojo-accessibility.zip -F "initial_comment=Ally - A new PR has been pushed to the master branch by ${{ github.actor }}." title="${{ github.event.pull_request.title }}" -F channels=C07LFCFNGDB -H "Authorization: Bearer ${{ secrets.CLOUD_SLACK_BOT_TOKEN }}" https://slack.com/api/files.upload + uses: slackapi/slack-github-action@v2.1.1 + with: + method: files.uploadV2 + token: ${{ secrets.CLOUD_SLACK_BOT_TOKEN }} + payload: | + channel_id: "C07LFCFNGDB" + title: "${{ github.event.pull_request.title }}" + initial_comment: "Ally - A new PR has been pushed to the master branch by ${{ github.actor }}." + file: "pojo-accessibility.zip" + filename: "pojo-accessibility.zip"" - name: Push to Slack on Manual Trigger if: ${{ github.event.inputs.push_to_slack == 'true' }} - run: | - curl -F file=@pojo-accessibility.zip -F "initial_comment=Ally - A new build was triggered by ${{ github.actor }}." title="Manuall ${{ steps.date.outputs.date }}" -F channels=C07LFCFNGDB -H "Authorization: Bearer ${{ secrets.CLOUD_SLACK_BOT_TOKEN }}" https://slack.com/api/files.upload + uses: slackapi/slack-github-action@v2.1.1 + with: + method: files.uploadV2 + token: ${{ secrets.CLOUD_SLACK_BOT_TOKEN }} + payload: | + channel_id: "C07LFCFNGDB" + title: "Manuall ${{ github.event.pull_request.title }}" + initial_comment: "Ally - A new build was triggered by ${{ github.actor }}." + file: "pojo-accessibility.zip" + filename: "pojo-accessibility.zip"