magisteriis / download-league-of-legends-data-dragon

A GitHub Action for downloading the League of Legends Data Dragon.

Home Page:https://github.com/marketplace/actions/download-league-of-legends-data-dragon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download League of Legends Data Dragon

Daily Test (@v1)

image

A GitHub Action for downloading the League of Legends Data Dragon. The download takes ~5 seconds.

Data Dragon is our way of centralizing League of Legends game data and assets, including champions, items, runes, summoner spells, and profile icons. All of which can be used by third-party developers. You can download a compressed tarball (.tgz) for each patch which will contain all assets for that patch. Please be aware that updating Data Dragon after each League of Legends patch is a manual process, so it is not always updated immediately after a patch. - Riot Developer Portal

Example

Download the latest version as ./dragontail.tgz (or ./dragontail.zip if the version is a zip).

- name: Download Data Dragon
  uses: magisteriis/download-league-of-legends-data-dragon@v1
  
- name: Extract Data Dragon
  run: tar -xvzf dragontail.tgz

Inputs

region

Data Dragon versions aren't always equivalent to the League of Legends client version in a region. - Riot Developer Portal

- name: Download Data Dragon for EUW
  uses: magisteriis/download-league-of-legends-data-dragon@v1
  with:
    region: EUW

version

Can't be used together with region. Download a specific version of the Data Dragon.

- name: Download Data Dragon version 12.1.1
  uses: magisteriis/download-league-of-legends-data-dragon@v1
  with:
    version: 12.1.1     

path

You can set a custom path for the downloaded file. The default is ./dragontail.tgz.

Note: version 10.10 was a .zip and if a zip is downloaded the extension will be changed to .zip, even for a custom path.

- name: Download Data Dragon version 12.1.1
  uses: magisteriis/download-league-of-legends-data-dragon@v1
  with:
    region: EUW
    path: './dragontails/euw.tgz'

Outputs

version

The action will output the version of the Data Dragon downloaded.

- name: Download Data Dragon
  uses: magisteriis/download-league-of-legends-data-dragon@v1
  id: data-dragon
  
- name: Print the version
  run: echo "Downloaded Data Dragon version: ${{ steps.data-dragon.outputs.version }}"

path

Version 10.10 was a zip. If the downloaded Data Dragon is a zip the extension will be changed to zip. This also applies if you specify a manual path ending with ".tgz". You can get the path to the file written from the action output.

- name: Download Data Dragon
  id: data-dragon
  uses: magisteriis/download-league-of-legends-data-dragon@v1
  
- name: Extract Data Dragon
  run: tar -xvzf ${{ steps.data-dragon.outputs.path }}

Sponsors

Sentry Logo JetBrains Logo (Main) logo

Notice from Riot Games, Inc.

The GitHub Action "Download League of Legends Data Dragon" by @mikaeldui isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.