Skip to content

Commit fa6544c

Browse files
committed
feat(ci): Update twitter release package.
1 parent 7cd3271 commit fa6544c

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/twitter.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,26 @@ on:
55
jobs:
66
tweet:
77
runs-on: ubuntu-latest
8+
env:
9+
CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
10+
CONSUMER_API_SECRET_KEY: ${{ secrets.TWITTER_CONSUMER_API_SECRET_KEY }}
11+
ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
12+
ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
813
steps:
9-
- uses: ethomson/send-tweet-action@v1
14+
- uses: actions/checkout@v3
15+
- name: Tweet summary
16+
id: summary
17+
uses: snow-actions/tweet@v1.4.0
1018
with:
11-
status: "Obsidian Invio Feature"
12-
consumer-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
13-
consumer-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
14-
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
15-
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
19+
status: |
20+
Released ${{ github.event.release.name }}
21+
${{ github.event.release.html_url }}
22+
media_paths: |
23+
1st.png
24+
2nd.png
25+
- name: Tweet details
26+
uses: snow-actions/tweet@v1.4.0
27+
with:
28+
status: |
29+
Additional information
30+
in_reply_to_status_id: ${{ fromJSON(steps.summary.outputs.response).id_str }}

0 commit comments

Comments
 (0)