From d040ed460afbe0fd8307b1318772ca858d4997f9 Mon Sep 17 00:00:00 2001 From: Eric Villa Date: Wed, 13 Sep 2023 16:24:23 +0200 Subject: [PATCH] chore: fixed approval workflow --- .../desktop-app-cd-nightly-approval.yml | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/desktop-app-cd-nightly-approval.yml b/.github/workflows/desktop-app-cd-nightly-approval.yml index d2999ed73..0fb3d3451 100644 --- a/.github/workflows/desktop-app-cd-nightly-approval.yml +++ b/.github/workflows/desktop-app-cd-nightly-approval.yml @@ -251,13 +251,6 @@ jobs: name: Leapp-${{ steps.release.outputs.TAG_VERSION }}.dmg path: packages/desktop-app/release/Leapp-${{ steps.release.outputs.TAG_VERSION }}.dmg - - name: Upload to Slack - uses: adrey/slack-file-upload-action@master - with: - token: ${{ secrets.SLACK_TOKEN }} - path: packages/desktop-app/release/Leapp-${{ steps.release.outputs.TAG_VERSION }}.dmg - channel: nightly-builds - build-macos-arm: runs-on: macos-latest needs: [ build-and-release-core-and-cli, generate-build-identifier ] @@ -326,9 +319,19 @@ jobs: name: Leapp-${{ steps.release.outputs.TAG_VERSION }}-arm64.dmg path: packages/desktop-app/release/Leapp-${{ steps.release.outputs.TAG_VERSION }}-arm64.dmg - - name: Upload to Slack - uses: adrey/slack-file-upload-action@master + post-to-slack: + runs-on: ubuntu-latest + needs: [ build-win, build-linux, build-macos-x64, build-macos-arm ] + steps: + - name: Post to Slack + id: slack + uses: slackapi/slack-github-action@v1.24.0 with: - token: ${{ secrets.SLACK_TOKEN }} - path: packages/desktop-app/release/Leapp-${{ steps.release.outputs.TAG_VERSION }}-arm64.dmg - channel: nightly-builds + # Slack channel id, channel name, or user id to post message. + # See also: https://api.slack.com/methods/chat.postMessage#channels + # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs. + channel-id: "C05S4TSQ919" + # For posting a simple plain text message + slack-message: "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} approval builds: https://github.com/Noovolari/leapp/actions/runs/${{ github. run_id }}" + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}