{"id":20028184,"url":"https://github.com/42lm/zigist","last_synced_at":"2025-10-25T15:09:53.592Z","repository":{"id":184679328,"uuid":"671664365","full_name":"42LM/zigist","owner":"42LM","description":"Update a gist with a random dev joke. Pure Zig⚡","archived":false,"fork":false,"pushed_at":"2025-01-28T01:01:03.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T02:21:30.753Z","etag":null,"topics":["actions","continuous-integration","cron","cronjob","githubci","zig","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/42LM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-27T21:09:23.000Z","updated_at":"2025-01-23T08:45:11.000Z","dependencies_parsed_at":"2023-12-30T22:22:24.557Z","dependency_job_id":"c1454e4f-3ba5-4824-a11c-a11b0debbac9","html_url":"https://github.com/42LM/zigist","commit_stats":null,"previous_names":["lmllrjr/zigist","42lm/zigist"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42LM%2Fzigist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42LM%2Fzigist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42LM%2Fzigist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42LM%2Fzigist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/42LM","download_url":"https://codeload.github.com/42LM/zigist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241460045,"owners_count":19966516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","continuous-integration","cron","cronjob","githubci","zig","ziglang"],"created_at":"2024-11-13T09:13:42.149Z","updated_at":"2025-10-25T15:09:53.586Z","avatar_url":"https://github.com/42LM.png","language":"Zig","readme":"# Zigist - Update a gist with a random dev joke\n[![test](https://github.com/42LM/zigist/actions/workflows/test.yaml/badge.svg)](https://github.com/42LM/zigist/actions/workflows/test.yaml) [![cron](https://github.com/42LM/zigist/actions/workflows/cron.yaml/badge.svg)](https://github.com/42LM/zigist/actions/workflows/cron.yaml)\n\nNothing fancy here. This is just a simple github action to update a gist with a random dev joke using [Zig ⚡️](https://github.com/ziglang/zig).\n\n## Quick start\n```yaml\nuses: 42LM/zigist@v1\nwith:\n  gh-token: ${{ secrets.GH_TOKEN }}\n  gist-id: e35b7dfc8ec2c958a7f8f0c9938ffd60\n```\n\n\u003e [!TIP]\n\u003e Pin the gist in your profile:  \n\u003e \u003cbr\u003e\n\u003e \u003cimg width=\"466\" alt=\"Screenshot 2024-03-18 at 01 00 19\" src=\"https://github.com/42LM/zigist/assets/93522910/a5ea6d0e-fdd0-442d-9375-5b9d6876d89b\"\u003e\n\u003e \u003cbr\u003e\n\u003e [See it in ~action~ the wild](https://github.com/42LM)\n\n## Inputs\n|Input Name|Description|Required|\n| --- | --- | :---: |\n|`gh-token`|The GitHub [Personal Access Token](https://docs.github.com/en/enterprise-server@3.9/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with *gist* access|☑️|\n|`gist-id`|The GitHub public gist id|☑️|\n\n\u003e [!IMPORTANT]\n\u003e #### `gh-token`: The GitHub Token needs to be created as a repository secret in the repository that uses this action.[^1]\n\u003e #### `gist-id`: The GitHub gist needs to be created with the file name `NEWS.md`.[^2]\n\n## Example usage\nhttps://github.com/42LM/zigist/blob/772cf37d3bf22d435f5aa8459b65a6a150d69e7f/.github/workflows/cron.yaml#L1-L16\n\n## Local environment setup\nThe following two environment variables need to be set up:\n1. `GH_TOKEN`: Create a github token that has access to gists.\n2. `GIST_ID`: Create a gist.\n\nCopy `.envrc.example` to `.envrc` and edit values. Load this environment into your shell, for example with [direnv](https://direnv.net/).\n```sh\ncp .envrc.example .envrc\n```\n\n### Zig\n```sh\nzig build run\n```\n\n```sh\nzig build test --summary all\n```\n\n### Docker\n```sh\ndocker build -t zig0.14.0 .\n```\n\n```sh\ndocker run --name zigist zig0.14.0 $GH_TOKEN $GIST_ID\n```\n\n[^1]: Place repository secret: ![Screenshot 2024-03-17 at 23 54 25](https://github.com/42LM/zigist/assets/93522910/667ad7a8-bc4e-4115-85bf-61945095f1dc)\n[^2]: Create github gist with filename `NEWS.md`: ![Screenshot 2024-03-17 at 23 30 13](https://github.com/42LM/zigist/assets/93522910/e0b614d2-131f-480e-9203-0c08f1b77a7e)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F42lm%2Fzigist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F42lm%2Fzigist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F42lm%2Fzigist/lists"}