Skip to content

Commit

Permalink
feat: slack notification about quali (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosa committed Aug 22, 2024
1 parent 30db6d7 commit c32aa4f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/qualify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,29 @@ jobs:
filename: ${{ inputs.version }}-${{ steps.date.outputs.date }}.tar
folderId: ${{ secrets.ARTIFACTS_DRIVE_FOLDER_ID }}
name: ${{ inputs.version }}-${{ steps.date.outputs.date }}.tar

- name: "Setup message"
id: slack
shell: bash
run: |
COMMIT="${{ inputs.version }}"
FULL_MESSAGE="Qualification of \`${COMMIT}\`: "
if [[ "${{ needs.qualify.result }}" =~ ^(success)$ ]]; then
FULL_MESSAGE="${FULL_MESSAGE} :white_check_mark:"
elif [[ "${{ needs.qualify.result }}" =~ ^(failure|timed_out)$ ]]; then
FULL_MESSAGE="${FULL_MESSAGE} :x:"
fi
echo "message=${FULL_MESSAGE}" >> $GITHUB_OUTPUT
- name: "Notify DRE on slack"
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
with:
channel-id: eng-release-bots
slack-message: |
${{ steps.slack.outputs.message }}
Artifacts of run: `${{ inputs.version }}-${{ steps.date.outputs.date }}.tar`
Artifacts can be found on <https://drive.google.com/drive/u/1/folders/${{secrets.ARTIFACTS_DRIVE_FOLDER_ID}}|Google Drive :open_file_folder:>
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_API_TOKEN }}

0 comments on commit c32aa4f

Please sign in to comment.