Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ESO Addon API Version Refresh

Checks the esoui/esoui repo's own live README - which states the Elder Scrolls Online client's current live API version in plain text - and bumps your addon manifest's ## APIVersion: pair (current, current+1) if it's fallen behind, committing and pushing the change.

Declaring the next API version alongside the current one is a preemptive "probably still works on the next patch too" statement: a stale-but-lower declared APIVersion shows as "Out of Date" in the in-game Add-On Manager but doesn't hard-block loading. You should still verify your addon actually works after each real ESO update.

Usage

Your workflow must check out the repo first, with permissions: contents: write on the job (this action commits and pushes).

name: API Version Refresh

on:
  schedule:
    - cron: '0 12 * * *'   # once a day
  workflow_dispatch:
  workflow_call:

jobs:
  refresh-api-version:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v7

      - uses: MPHONlC/eso-api-version-refresh@Version-0.0.2
        with:
          manifest_file: 'MyAddon.addon'
          git_name: 'YourGitName'
          git_email: 'your-email@example.com'

Inputs

Input Required Default Description
manifest_file Yes - Path to your addon's .addon manifest file.
git_name Yes - Git name to attribute the refresh commit to.
git_email Yes - Git email to attribute the refresh commit to.

Outputs

Output Description
result One of updated, up_to_date, or extraction_failed.
old_api The declared APIVersion pair before this run.
new_api The declared APIVersion pair after this run (only set when result is updated).

Requirements

  • Your manifest's ## APIVersion: line must already declare exactly two numbers (current and current+1) - this action only ever rewrites both together.
  • The calling job needs permissions: contents: write, since this action pushes directly.
  • No secrets required - the source it reads (raw.githubusercontent.com/esoui/esoui) is public.

Important

Without permissions: contents: write on the job, the commit/push step fails - this is the most common setup mistake with this action.

Warning

The result: extraction_failed output means the regex that scrapes esoui/esoui's own README for its current live API version didn't match anything - most likely because esoui/esoui changed the wording or formatting of that line. This doesn't fail the job or touch your manifest, but it does mean the check silently did nothing that run; worth watching for if esoui/esoui ever restructures their README.

License

MIT - see LICENSE.

About

Checks the [esoui/esoui](https://github.com/esoui/esoui) repo's own live README - which states the Elder Scrolls Online client's current live API version in plain text - and bumps your addon manifest's `## APIVersion:` pair (`current`, `current+1`) if it's fallen behind, committing and pushing the change.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors