Nothing fancy here. This is just a simple github action to update a gist with a random dev joke using Zig ⚡️.
uses: 42LM/zigist@v1
with:
gh-token: ${{ secrets.GH_TOKEN }}
gist-id: e35b7dfc8ec2c958a7f8f0c9938ffd60
Tip
Pin the gist in your profile:
See it in action the wild
Input Name | Description | Required |
---|---|---|
gh-token |
The GitHub Personal Access Token with gist access | ☑️ |
gist-id |
The GitHub public gist id | ☑️ |
Important
gh-token
: The GitHub Token needs to be created as a repository secret in the repository that uses this action.1
gist-id
: The GitHub gist needs to be created with the file name NEWS.md
.2
zigist/.github/workflows/cron.yaml
Lines 1 to 16 in 772cf37
The following two environment variables need to be set up:
GH_TOKEN
: Create a github token that has access to gists.GIST_ID
: Create a gist.
Copy .envrc.example
to .envrc
and edit values. Load this environment into your shell, for example with direnv.
cp .envrc.example .envrc
zig build run
zig build test --summary all
docker build -t zig0.13.0 .
docker run --name zigist zig0.13.0 $GH_TOKEN $GIST_ID