42LM/zigist
Update a gist with a random dev joke. Pure Zig⚡
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 nameNEWS.md
.[^2]
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 ziglang/static-v0.13.0 .
docker run --name zigist ziglang/static-v0.13.0 $GH_TOKEN $GIST_ID
[^1]: Place repository secret:
[^2]: Create github gist with filename NEWS.md
: