This repository is not actively updated. Please contact me on Discord (@drturtle) if something breaks.
This project allows users to automatically update the code and documentation for snippets and aliases in Avrae collections. It also allows for the automatic updating of GVARS. See below for the required setup and instructions. Feel free to make an issue if you run into any problems!
Generally, each collection should be given it's own folder. Inside the collection folder, each alias should have it's own folder. In each alias folder, the alias should be present as well as the documentation for the alias. Snippets should be placed under the collection directory. Here is a full graphical demonstration.
Github Repository
├── collections
│ └── cool-collection
│ ├── my-alias
│ │ ├── my-alias.alias
│ │ ├── my-alias.md
│ │ └── my-subalias
│ │ ├── my-subalias.alias
│ │ └── my-subalias.md
│ ├── my-snippet.md
│ └── my-snippet.snippet
├── collections.json
├── .github
│ └── workflows
│ └── update_avrae.yml
├── gvars
│ └── my-gvar.gvar
└── gvars.json
Here you can find a repository that has this action set up correctly.
Warning: Take caution when performing step 2. Your Avrae token should be kept secret, so please do not share the token or do anything with it except place it as a github secret. This action does not leak any tokens to logs.
- Install the action file into your repository. See the above graphic for where the YAML file should go, under the
.githubdirectory. An example workflow is provided in the example folder, here.- Ensure that the correct branch is present under line 5. Typical values include
mainandmaster.
- Ensure that the correct branch is present under line 5. Typical values include
- Create and populate your
collections.jsonand yourgvars.json - Add your Avrae Token to your repository.
- Go to
https://avrae.io/dashboardand ensure you are signed into your account. - Open your browser's developer console, usually via
F12 - Navigate to your "Storage" -> "Local Storage". Steps may vary from browser to browser.
- Copy the value of the
avrae-tokenvariable. - Following these steps, create a Github Secret in your repository with the exact name of
AVRAE_TOKEN.
- Go to
- To ensure the action is working correctly, create a "test change" to an alias in your repository, commit the change, and push to Github.
- After a couple minutes, navigate to the "Actions" tab next to the Pull Requests tab
- Click the most recent action run.
- Click "publish"
- Review the output under the "Run 1drturtle/avrae-autoupdate" tab.