build(deps): bump rtCamp/action-slack-notify from 2.3.1 to 2.3.2 #376
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build package | |
on: [push, pull_request] | |
jobs: | |
windows: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.6' | |
- name: Build | |
shell: cmd | |
run: choco pack -v | |
- name: Install | |
shell: cmd | |
run: choco install dvc --debug --verbose --source "'.;https://community.chocolatey.org/api/v2/'" | |
- name: Test | |
shell: cmd | |
run: | | |
refreshenv | |
dvc doctor | |
- name: Publish | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
shell: bash | |
env: | |
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }} | |
run: | | |
choco apikey --key $CHOCO_API_KEY --source https://push.chocolatey.org/ | |
choco push dvc*.nupkg --source https://push.chocolatey.org/ | |
notify: | |
if: github.ref == 'refs/heads/main' && failure() | |
needs: [windows] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@v2.3.2 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_COLOR: ${{ job.status }} | |
SLACK_MESSAGE: 'Package build failed for ${{ github.repository }}' | |
SLACK_TITLE: CI Status | |
SLACK_USERNAME: dvc-pkg-build |