Skip to content

Commit

Permalink
Add slack notification for collection releases
Browse files Browse the repository at this point in the history
  • Loading branch information
greedybro committed Feb 4, 2021
1 parent 0d9f23d commit 3477bce
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/collection-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ jobs:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'Release')"
steps:
- name: Notify Slack of starting
uses: act10ns/slack@v1
with:
status: starting
channel: '#collection_release'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

- uses: actions/checkout@v2

- name: Prepare Collection
Expand Down Expand Up @@ -60,3 +68,12 @@ jobs:
asset_path: ./manala-roles-${{ steps.changelog.outputs.version }}.tar.gz
asset_name: manala-roles-${{ steps.changelog.outputs.version }}.tar.gz
asset_content_type: application/zip

- name: Notify Slack of action status
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#collection_release'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 3477bce

Please sign in to comment.