File tree Expand file tree Collapse file tree 2 files changed +2
-33
lines changed
nf_core/pipeline-template/.github/workflows Expand file tree Collapse file tree 2 files changed +2
-33
lines changed Original file line number Diff line number Diff line change 44
55### Template
66
7+ - Remove automated release tweets ([ #3419 ] ( https://github.com/nf-core/tools/pull/3419 ) )
8+
79### Linting
810
911### Modules
Original file line number Diff line number Diff line change 2727
2828 ${{ steps.get_topics.outputs.topics }} #nfcore #openscience #nextflow #bioinformatics
2929
30- send-tweet :
31- runs-on : ubuntu-latest
32-
33- steps :
34- - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
35- with :
36- python-version : " 3.10"
37- - name : Install dependencies
38- run : pip install tweepy==4.14.0
39- - name : Send tweet
40- shell : python
41- run : |
42- import os
43- import tweepy
44-
45- client = tweepy.Client(
46- access_token=os.getenv("TWITTER_ACCESS_TOKEN"),
47- access_token_secret=os.getenv("TWITTER_ACCESS_TOKEN_SECRET"),
48- consumer_key=os.getenv("TWITTER_CONSUMER_KEY"),
49- consumer_secret=os.getenv("TWITTER_CONSUMER_SECRET"),
50- )
51- tweet = os.getenv("TWEET")
52- client.create_tweet(text=tweet)
53- env :
54- TWEET : |
55- Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!
56-
57- Please see the changelog: ${{ github.event.release.html_url }}
58- TWITTER_CONSUMER_KEY : ${{ secrets.TWITTER_CONSUMER_KEY }}
59- TWITTER_CONSUMER_SECRET : ${{ secrets.TWITTER_CONSUMER_SECRET }}
60- TWITTER_ACCESS_TOKEN : ${{ secrets.TWITTER_ACCESS_TOKEN }}
61- TWITTER_ACCESS_TOKEN_SECRET : ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
62-
6330 bsky-post :
6431 runs-on : ubuntu-latest
6532 steps :
You can’t perform that action at this time.
0 commit comments