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
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
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
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
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'
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 }}"
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 }}
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.