Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikeamputer/orcs-earn-badges

A GitHub action that tracks orcs-have-issues game achievements and adds badges to a profile readme
https://github.com/mikeamputer/orcs-earn-badges

actions badges dotnet github-profile profile-readme rpg

Last synced: 4 months ago
JSON representation

A GitHub action that tracks orcs-have-issues game achievements and adds badges to a profile readme

Awesome Lists containing this project

README

        

# orcs-earn-badges
A GitHub action that tracks [orcs-have-issues](https://github.com/MikeAmputer/orcs-have-issues) game achievements and adds badges to a profile readme.




Level 1, Orc
Level 3, Orc




Reactions Bronze
Reactions Silver
Reactions Gold
Cycles Bronze
Cycles Silver
Cycles Gold
Craft Bronze
Craft Silver
Craft Gold
Spider Slayer Bronze
Spider Slayer Silver
Spider Slayer Gold
Goblin Slayer Bronze
Goblin Slayer Silver
Goblin Slayer Gold
Bandit Slayer Bronze
Bandit Slayer Silver
Bandit Slayer Gold
Undead Slayer Bronze
Undead Slayer Silver
Undead Slayer Gold
PvP Kills Bronze
PvP Kills Silver
PvP Kills Gold
Newcomer
Clean Issue

## Installation
Create a character in the [orcs-have-issues repository](https://github.com/MikeAmputer/orcs-have-issues) to earn your first badge.

Create a new repository named `YourLogin/YourLogin` on GitHub with a README.md file to [manage your profile readme](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme). Replace `YourLogin` with your GitHub username.

Edit README.md and add the following comment lines (badges will appear between them):

```

```

Create a new workflow (add file) in your repository at `.github/workflows/orcs-earn-badges.yml`:

```yml
name: Orcs Have Issues Badges

on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:

jobs:
update-badges:
runs-on: ubuntu-latest
steps:
- name: Orcs Have Issues Profile Badges
uses: MikeAmputer/orcs-earn-badges@v1
with:
token: ${{ secrets.REPOSITORY_TOKEN }}
```

This will automatically run the action daily at 1:30 UTC (1 hour after the game simulation), and will also let you to run it manually right now or any other time.

[Generate a Personal Access Token](https://github.com/settings/personal-access-tokens/new) with `contents` write permission. This token will be used to update the readme file.





Copy the token and navigate to `/settings/secrets/actions` of your repository.




Create a new repository secret `REPOSITORY_TOKEN` with the value of the created token.




To validate setup, navigate to the `/actions/workflows/orcs-earn-badges.yml` and run the workflow manually.




You can check the result in [my profile](https://github.com/MikeAmputer), and an example of installation in [my profile repository](https://github.com/MikeAmputer/MikeAmputer).