7 name: Send Announcements
11 name: Clone Git Repository
12 uses: actions/checkout@v4
16 name: Fetch last release info
17 run: echo "tag=$(gh release view --json tagName --jq '.tagName')" >> $GITHUB_OUTPUT
19 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 uses: dawidd6/action-send-mail@v4
24 server_address: ${{ secrets.MAIL_SERVER }}
25 server_port: ${{ secrets.MAIL_PORT }}
26 username: ${{ secrets.MAIL_USERNAME }}
27 password: ${{ secrets.MAIL_PASSWORD }}
28 subject: ${{ github.event.repository.name }} version ${{ steps.last_release.outputs.tag }} published
29 body: See https://github.com/metio/yosql/releases/tag/${{ steps.last_release.outputs.tag }} for details.
30 to: ${{ secrets.MAIL_RECIPIENT }}
31 from: ${{ secrets.MAIL_SENDER }}
33 name: Send Matrix Message
34 uses: s3krit/matrix-message-action@v0.0.3
36 room_id: ${{ secrets.MATRIX_ROOM_ID }}
37 access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
38 message: ${{ github.event.repository.name }} version [${{ steps.last_release.outputs.tag }}](https://github.com/metio/yosql/releases/tag/${{ steps.last_release.outputs.tag }}) published
39 server: ${{ secrets.MATRIX_SERVER }}