-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (35 loc) · 1.36 KB
/
announce.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Announce
on:
release:
types:
- edited
- released
- published
workflow_dispatch:
jobs:
Announce:
runs-on: ubuntu-latest
steps:
- id: get_version
name: Get version
uses: jannemattila/get-version-from-tag@v4
- name: Display version
run: |
VERSION=$(echo "${{ steps.get_version.outputs.version }}")
echo $VERSION
- name: Send toot to Mastodon with additional options
id: mastodon_toot
uses: cbrgm/mastodon-github-action@v2
with:
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
url: ${{ secrets.MASTODON_URL }}
message: "The Patristic Text Archive (PTA) has been updated to version ${{ steps.get_version.outputs.version }}. Have a look at https://doi.org/10.5281/zenodo.4066796 for more info or see it live at https://pta.bbaw.de."
visibility: "public"
language: "en"
- uses: myConsciousness/bluesky-post@v5
with:
text: "The Patristic Text Archive (PTA) has been updated to version ${{ steps.get_version.outputs.version }}. Have a look at https://doi.org/10.5281/zenodo.4066796 for more info."
link-preview-url: "https://pta.bbaw.de"
identifier: ${{ secrets.BLUESKY_IDENTIFIER }}
password: ${{ secrets.BLUESKY_PASSWORD }}
retry-count: 5