Skip to content

Announce Release

Announce Release #7

name: "Announce Release"
on:
release:
types: [created]
jobs:
mastodon:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- uses: sergeysova/jq-action@v2
id: project-name
with:
cmd: 'jq .name composer.json -r'
- id: mastodon
uses: cbrgm/mastodon-github-action@v1
env:
MASTODON_URL: https://toot.metasyntactical.com
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
with:
visibility: unlisted
message: |
We are happy to announce a new release of: ${{ steps.project-name.outputs.value }} ${{ github.ref_name }}
Packagist: https://packagist.org/packages/${{ steps.project-name.outputs.value }}#${{ github.ref_name }}
Release Notes: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
#opensource #php #library #release