Home

Awesome

<p align="center"> <img width="400" src="https://user-images.githubusercontent.com/10660468/54499151-062f8900-48e5-11e9-82c9-767d39c9cbbe.png"> <h3 align="center">activity-box</h3> <p align="center">āš”ļøšŸ“Œ Update a pinned gist to contain the latest activity of a user</p> </p> <p align="center"><a href="https://github.com/JasonEtco/activity-box"><img alt="GitHub Actions status" src="https://github.com/JasonEtco/activity-box/workflows/Node%20CI/badge.svg"> <a href="https://codecov.io/gh/JasonEtco/activity-box/"><img src="https://badgen.now.sh/codecov/c/github/JasonEtco/activity-box" alt="Codecov"></a></p>

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:
<img alt="Screenshot of the GitHub repository UI, with the Use this template button highlighted" src="assets/use-this-template.png" width="600" />

Name your repository and click Create repository from template.

<img alt="Screenshot of the GitHub repository creation UI" src="assets/create-repository-from-template.png" width="500" />
  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/checkout@v1
      - uses: JasonEtco/activity-box@master
        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:
  1. šŸ’° Profit

Environment variables & secrets


Inspired by matchai/bird-box