Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.

Commit 5c310ec

Browse files
committed
Add tweetrel bot
1 parent 5fd0d22 commit 5c310ec

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

.github/scripts/build-tweet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import tweetrel
2+
tweetrel.send_tweet()

.github/workflows/tweet.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: tweet
2+
on:
3+
workflow_dispatch:
4+
release:
5+
types: [published]
6+
defaults:
7+
run: { shell: bash }
8+
9+
jobs:
10+
11+
build:
12+
None
13+
strategy:
14+
fail-fast: false
15+
matrix: { os: [ubuntu] }
16+
runs-on: ${{ matrix.os }}-latest
17+
steps:
18+
- uses: actions/checkout@v1
19+
- uses: actions/setup-python@v2
20+
with: {python-version: '3.8'}
21+
- name: Run script
22+
env:
23+
CONTEXT_GITHUB: ${{ toJson(github) }}
24+
CONTEXT_SECRETS: ${{ toJson(secrets) }}
25+
TWEETREL_TEMPLATE: |
26+
We are proud to announce the {tag_name} release of Borum Jot for Android!
27+
28+
{body}
29+
run: |
30+
pip install -Uq tweetrel
31+
python .github/scripts/build-tweet.py

0 commit comments

Comments
 (0)