From aa93a067e4b70a729c14375321c210c478e54953 Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Mon, 31 Jul 2023 09:34:59 -0600 Subject: [PATCH] ci: playing with automatic tweet tool --- .github/workflows/build_and_publish.yml | 7 ------- .github/workflows/notify-twitter.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/notify-twitter.yml diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 3b75348..2b2d356 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/notify-twitter.yml b/.github/workflows/notify-twitter.yml new file mode 100644 index 0000000..7e3b72b --- /dev/null +++ b/.github/workflows/notify-twitter.yml @@ -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 }}