File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 4242 run : ls -l dist/
4343 - name : Publish package distributions to PyPI
4444 uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
45+
46+ discord_release :
47+ if : github.repository_owner == 'google'
48+ runs-on : ubuntu-latest
49+ steps :
50+ - name : Get release URL
51+ id : get-release-url
52+ run : |
53+ URL="https://github.com/google/flax/releases"
54+ echo "::set-output name=URL::$URL"
55+ - name : Get content
56+ uses : 2428392/gh-truncate-string-action@b3ff790d21cf42af3ca7579146eedb93c8fb0757 # v1.4.1
57+ id : get-content
58+ with :
59+ stringToTruncate : |
60+ Flax [${{ github.event.release.tag_name }}](<${{ steps.get-release-url.outputs.URL }}>) was just released!
61+
62+ ${{ github.event.release.body }}
63+ maxLength : 2000
64+ truncationSymbol : " ..."
65+ - name : Discord Webhook Action
66+ uses : tsickert/discord-webhook@c840d45a03a323fbc3f7507ac7769dbd91bfb164 # v5.3.0
67+ with :
68+ webhook-url : ${{ secrets.DISCORD_WEBHOOK_URL }}
69+ content : ${{ steps.get-content.outputs.string }}
You can’t perform that action at this time.
0 commit comments