Skip to content

Commit

Permalink
ci: playing with automatic tweet tool
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Jul 31, 2023
1 parent f851716 commit aa93a06
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,3 @@ jobs:
TYPE: npm
PATH: package.json
TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}

# TODO this is broken https://github.com/Jaid/action-sync-node-meta/issues/30
# -
# uses: jaid/action-sync-node-meta@v2.0.0
# with:
# direction: overwrite-github
# githubToken: ${{ secrets.github_token }}
19 changes: 19 additions & 0 deletions .github/workflows/notify-twitter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Notify twitter

on:
workflow_dispatch:
release:
types: [published]

jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: nearform-actions/github-action-notify-twitter@master
with:
message: |
${{ github.event.repository.name }} ${{ github.event.release.tag_name }} has been released. Check out the release notes: ${{ github.event.release.html_url }}
twitter-app-key: ${{ secrets.TWITTER_CONSUMER_KEY }}
twitter-app-secret: ${{ secrets.TWITTER_CONSUMER_SECRET_KEY }}
twitter-access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
twitter-access-token-secret: ${{ secrets.TWITTER_TOKEN_SECRET }}

0 comments on commit aa93a06

Please sign in to comment.