-
Notifications
You must be signed in to change notification settings - Fork 294
51 lines (45 loc) · 1.62 KB
/
release-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Publish Release
# This workflow is called when a new release is published in GitHub.
# Cancel other related workflows in-progress
concurrency:
group: release-publish-${{ github.ref }}
cancel-in-progress: true
on:
release:
types: [published]
jobs:
load-repo:
name: Download GitHub repo
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
announce-release:
runs-on: ubuntu-latest
name: Announce successful release
needs: [load-repo]
steps:
- name: Convert markdown to slack markdown
# https://github.com/LoveToKnow/slackify-markdown-action
uses: LoveToKnow/[email protected]
id: slack-markdown
with:
text: |
${{ github.ref_name }} New version of OTIO released!.
[Release Notes](https://github.com/AcademySoftwareFoundation/OpenTimelineIO/releases/tag/${{ github.ref_name }})
- name: 'Slack Notification to #opentimelineio'
# https://github.com/rtCamp/action-slack-notify
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_RELEASES_URL }}
SLACK_ICON: https://avatars.githubusercontent.com/u/40807682?s=512&v=4
SLACK_LINK_NAMES: true
SLACK_USERNAME: 'OTIO Release Bot'
SLACK_CHANNEL: 'opentimelineio'
SLACK_COLOR: '#5b53ff'
SLACK_TITLE: 'New OTIO version released!'
SLACK_MESSAGE: |
${{ steps.slack-markdown.outputs.text }}
SLACK_FOOTER: |
Release Published: ${{ github.ref_name }}
MSG_MINIMAL: true