rocm_jax/.github/workflows/release-notification.yml
Skye Wanderman-Milne 8bed9bac81 Update Github Actions workflows using Ratchet
https://opensource.google/documentation/reference/github/services#actions
mandates using a specific commit for non-Google actions in workflow
files. I used https://github.com/sethvargo/ratchet to update all our
workflow files. Example command: `ratchet pin cloud-tpu-ci-nightly.yml`

Ratchet appears to also auto-format the YAML files. It makes the diff
confusing but I'm ok with the final result.
2022-11-16 18:45:59 +00:00

16 lines
541 B
YAML

name: Google Chat Release Notification
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Google Chat Notification
run: |
curl --location --request POST '${{ secrets.RELEASES_WEBHOOK }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "Release ${{github.event.release.name}} at ${{github.event.release.published_at}} by ${{github.event.release.author.login}}. <${{github.event.release.url}}|[github]>"
}'