Update Gist #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update Gist" | |
on: | |
push: | |
branches: [main] | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install APT dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake pkg-config libicu-dev zlib1g-dev libcurl4-openssl-dev libssl-dev ruby-dev | |
- name: Install GitHub Linguist | |
if: steps.cache-linguist.outputs.cache-hit != 'true' | |
run: sudo gem install github-linguist | |
- name: Install dependencies | |
run: bun i | |
- run: bun start | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GIST_ID: ${{ vars.GIST_ID }} | |
USERNAME: ${{ github.actor }} |