Need help with activity-box?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

JasonEtco
153 Stars 40 Forks ISC License 75 Commits 12 Opened issues

Description

⚡️📌 Update a pinned gist to contain the latest activity of a user

Services available

!
?

Need anything else?

Contributors list

# 31,073
probot
fish-sh...
Sass
github-...
59 commits
# 442,338
Python
acm
JavaScr...
pinned-...
3 commits

activity-box

⚡️📌 Update a pinned gist to contain the latest activity of a user

GitHub Actions status Codecov


Setup

activity-box is a GitHub Action that is designed to work using the

schedule
event.

Prep work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the
    gist
    scope and copy it. The
    GITHUB_TOKEN
    that comes with GitHub Actions cannot currently use the Gist API.

Project setup

  1. Create a template repository by clicking here. Alternatively, you can click the Use this template button:

| Screenshot of the GitHub repository UI, with the Use this template button highlighted | | --- |

Name your repository and click Create repository from template.

| Screenshot of the GitHub repository creation UI | | --- |

  1. Create a
    .github/workflows/activity-box.yml
    file with a workflow like this:
name: Activity Box

on: schedule: - cron: '*/10 * * * *'

jobs: build: runs-on: ubuntu-latest

steps:
  - uses: actions/[email protected]
  - uses: JasonEtco/[email protected]
    env:
      GH_PAT: ${{ secrets.GH_PAT }}
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      GH_USERNAME: JasonEtco
      GIST_ID: 123abc

  1. Create a secret 🔑 by going to GitHub repo > Settings > Secrets > New secret with the following:
  2. Name:
    GH_PAT
    .
  3. Value: The token with the

    gist
    scope generated previously.
  4. 💰 Profit

Environment variables & secrets

  • GIST_ID: The ID portion from your gist url
    https://gist.github.com/matchai/
    6d5f84419863089a167387da62dd7081
    .
  • GH_PAT: The GitHub token generated above.
  • GH_USERNAME: The username handle of the GitHub account.

Inspired by matchai/bird-box

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.