Skip to content

Commit

Permalink
chore: fixed approval workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvilla committed Sep 13, 2023
1 parent 095904b commit d040ed4
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/desktop-app-cd-nightly-approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down Expand Up @@ -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/[email protected]
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 }}

0 comments on commit d040ed4

Please sign in to comment.