Beta 17 - June 2024 #1
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: 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 |