⚡️📌 Update a pinned gist to contain the latest activity of a user
activity-box is a GitHub Action that is designed to work using the schedule event.
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gistscope and copy it. TheGITHUB_TOKENthat comes with GitHub Actions cannot currently use the Gist API.
- Create a
.github/workflows/activity-box.ymlfile with a workflow like this:
name: Activity Box
on:
schedule:
- cron: '*/10 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: JasonEtco/activity-box@master
env:
GH_PAT: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_USERNAME: JasonEtco
GIST_ID: 123abc- 💰 Profit
- 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 JasonEtco/activity-box
