Skip to content
upload-cloud

GitHub Action

Twitter Header Action

v1.0.0 Latest version

Twitter Header Action

upload-cloud

Twitter Header Action

Github action for updating your twitter header/banner

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Twitter Header Action

uses: abrahamnm/[email protected]

Learn more about this action in abrahamnm/twitter-header

Choose a version

Twitter Header GitHub Action

Build dist file Test Action

Update your twitter header from a github action.

Usage

You can consume the action by referencing the v1 branch and using your Twitter App credentials. To connect to the Twitter API you'll need to set up an app (or use an existing one) in the Twitter Developer Portal, configure the permissions to "Read and write and Direct message" and generate an "API Key and Secret" and "Access Token and Secret" from the "Keys and tokens" section.

Set up those credentials as secrets in your repository and add them to the workflow like in the example below:

name: Update my twitter Profile Header
on:
  workflow_dispatch:

jobs:
  twitter-header-update:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: abrahamnm/[email protected]
        with:
          header_path: header_file.png
          api_key: ${{ secrets.API_KEY }}
          api_secret: ${{ secrets.API_SECRET }}
          access_token: ${{ secrets.ACCESS_TOKEN }}
          access_token_secret: ${{ secrets.ACCESS_TOKEN_SECRET }}

See the actions tab for runs of this action! 🚀