diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f189f27b2..b305be88b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -473,7 +473,12 @@ jobs: import os import tweepy - client = tweepy.Client(os.getenv("TWITTER_ACCESS_TOKEN")) + client = tweepy.Client( + access_token=os.getenv("TWITTER_ACCESS_TOKEN"), + access_token_secret=os.getenv("TWITTER_ACCESS_TOKEN_SECRET"), + consumer_key=os.getenv("TWITTER_CONSUMER_KEY"), + consumer_secret=os.getenv("TWITTER_CONSUMER_SECRET"), + ) version = os.getenv("VERSION").strip('"') tweet = os.getenv("TWEET").format(version=version) client.create_tweet(text=tweet) @@ -483,4 +488,7 @@ jobs: Pydantic AI version {version} is out! 🎉 https://github.com/pydantic/pydantic-ai/releases/tag/v{version} + TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} + TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} + TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}