From 77dbae9552293a4d9dafb0e7145076627c0e5b28 Mon Sep 17 00:00:00 2001 From: SCHMITT Julien Date: Mon, 18 Sep 2023 17:49:08 +0200 Subject: [PATCH] clean main.yml and README.md with correct settings --- .github/workflows/main.yml | 3 +-- README.md | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9fab49f..a5bbc0e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,12 +9,11 @@ jobs: id: hello uses: noweh/post-tweet-v2-action@v0.10 with: - message: "Hi, this is a test!" + message: "Hello world, this is a test!" consumer-key: ${{ secrets.TWITTER_CONSUMER_KEY }} consumer-secret: ${{ secrets.TWITTER_CONSUMER_SECRET }} access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} - bearer-token: ${{ secrets.TWITTER_BEARER_TOKEN }} # Use the output from the `hello` step - name: Get the output time run: echo "The time was ${{ steps.hello.outputs.time }}" \ No newline at end of file diff --git a/README.md b/README.md index 67d85c6..ceab451 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,11 @@ jobs: steps: - uses: noweh/post-tweet-v2-action@v1 with: - status: "Hi, this is a test!" - bearer-token: ${{ secrets.TWITTER_BEARER_TOKEN }} + message: "Hi, this is a test!" + consumer-key: ${{ secrets.TWITTER_CONSUMER_KEY }} + consumer-secret: ${{ secrets.TWITTER_CONSUMER_SECRET }} + access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }} + access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} ``` Now whenever you push something to your repository, GitHub Actions will tweet on your behalf.