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 }}