Update mappings workflow for selected branches
This commit is contained in:
parent
593b23e1e2
commit
5e9c915553
5 changed files with 44 additions and 26 deletions
6
.github/workflows/update-mappings.yml
vendored
6
.github/workflows/update-mappings.yml
vendored
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
AUTOMATION_BRANCH: dev/automated-mapping-update
|
AUTOMATION_BRANCH: dev/automated-mapping-update-${{ github.ref_name }}
|
||||||
NTE_ASSETS_REF: ${{ inputs.source_ref }}
|
NTE_ASSETS_REF: ${{ inputs.source_ref }}
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.event.repository.default_branch }}
|
ref: ${{ github.ref_name }}
|
||||||
|
|
||||||
- name: Get Python
|
- name: Get Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
|
|
@ -91,7 +91,7 @@ jobs:
|
||||||
if: steps.changes.outputs.changed == 'true'
|
if: steps.changes.outputs.changed == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
BASE_BRANCH: ${{ github.event.repository.default_branch }}
|
BASE_BRANCH: ${{ github.ref_name }}
|
||||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
run: |
|
run: |
|
||||||
python - <<'PY'
|
python - <<'PY'
|
||||||
|
|
|
||||||
|
|
@ -19,15 +19,17 @@ game whose asset tables evolve over time.
|
||||||
|
|
||||||
### GitHub Actions
|
### GitHub Actions
|
||||||
|
|
||||||
Run **Update mappings** from the repository's Actions tab. The optional
|
Run **Update mappings** from the repository's Actions tab. **Use workflow
|
||||||
`source_ref` input accepts an NTE_Assets branch, tag, or commit and defaults to
|
from** selects the exporter branch whose updater is run and the target branch
|
||||||
`main`.
|
for the resulting pull request. The `source_ref` input separately selects an
|
||||||
|
NTE_Assets branch, tag, or commit and defaults to `main`.
|
||||||
|
|
||||||
The workflow rebuilds the mappings, runs the complete test suite, uploads the
|
The workflow rebuilds the mappings, runs the complete test suite, uploads the
|
||||||
JSON review report, and opens a pull request from
|
JSON review report, and opens a pull request from
|
||||||
`dev/automated-mapping-update`. Running it again updates the same open pull
|
`dev/automated-mapping-update-<selected-branch>`. Running it again for the same
|
||||||
request. If the authoritative snapshot has not changed, it reports zero changes
|
selected branch updates that branch's open pull request. If the authoritative
|
||||||
and does not create a commit or pull request.
|
snapshot has not changed, it reports zero changes and does not create a commit
|
||||||
|
or pull request.
|
||||||
|
|
||||||
The repository setting **Allow GitHub Actions to create and approve pull
|
The repository setting **Allow GitHub Actions to create and approve pull
|
||||||
requests** must be enabled for automatic pull-request creation. The workflow
|
requests** must be enabled for automatic pull-request creation. The workflow
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,10 @@
|
||||||
"fork_Butterfly": {"name": "Reality Refuge", "rank": "S"},
|
"fork_Butterfly": {"name": "Reality Refuge", "rank": "S"},
|
||||||
"fork_Castle": {"name": "Call of the Twisted City", "rank": "A"},
|
"fork_Castle": {"name": "Call of the Twisted City", "rank": "A"},
|
||||||
"fork_Crowbar": {"name": "Time Bandit", "rank": "A"},
|
"fork_Crowbar": {"name": "Time Bandit", "rank": "A"},
|
||||||
|
"fork_DemonBlade": {"name": "Ravenous Blade", "rank": "S"},
|
||||||
"fork_Door": {"name": "The Wrong Gate", "rank": "S"},
|
"fork_Door": {"name": "The Wrong Gate", "rank": "S"},
|
||||||
"fork_dustbin": {"name": "Dangerous Game", "rank": "B"},
|
"fork_dustbin": {"name": "Dangerous Game", "rank": "B"},
|
||||||
|
"fork_GoldRecord": {"name": "Voice of the Voyager", "rank": "S"},
|
||||||
"fork_GoldWool": {"name": "What's Desired", "rank": "S"},
|
"fork_GoldWool": {"name": "What's Desired", "rank": "S"},
|
||||||
"fork_jiaojuan": {"name": "Shiny Days", "rank": "A"},
|
"fork_jiaojuan": {"name": "Shiny Days", "rank": "A"},
|
||||||
"fork_jingmotingyuan": {"name": "Camellia Society", "rank": "S"},
|
"fork_jingmotingyuan": {"name": "Camellia Society", "rank": "S"},
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
"1023": {"name": "Baicang", "rank": "S"},
|
"1023": {"name": "Baicang", "rank": "S"},
|
||||||
"1025": {"name": "Hathor", "rank": "S"},
|
"1025": {"name": "Hathor", "rank": "S"},
|
||||||
"1033": {"name": "Adler", "rank": "A"},
|
"1033": {"name": "Adler", "rank": "A"},
|
||||||
|
"1036": {"name": "Zankou", "rank": "S"},
|
||||||
"1039": {"name": "Fadia", "rank": "S"},
|
"1039": {"name": "Fadia", "rank": "S"},
|
||||||
"1046": {"name": "Zero", "rank": "S"},
|
"1046": {"name": "Zero", "rank": "S"},
|
||||||
"1051": {"name": "Zero", "rank": "S"},
|
"1051": {"name": "Zero", "rank": "S"},
|
||||||
|
|
@ -18,7 +19,9 @@
|
||||||
"1056": {"name": "Lacrimosa", "rank": "S"},
|
"1056": {"name": "Lacrimosa", "rank": "S"},
|
||||||
"1070": {"name": "Aurelia", "rank": "A"},
|
"1070": {"name": "Aurelia", "rank": "A"},
|
||||||
"1071": {"name": "Chaos", "rank": "S"},
|
"1071": {"name": "Chaos", "rank": "S"},
|
||||||
|
"1072": {"name": "Linko", "rank": "S"},
|
||||||
"1073": {"name": "Chiz", "rank": "S"},
|
"1073": {"name": "Chiz", "rank": "S"},
|
||||||
"1075": {"name": "Iroi", "rank": "S"},
|
"1075": {"name": "Iroi", "rank": "S"},
|
||||||
"1076": {"name": "Shinku", "rank": "S"}
|
"1076": {"name": "Shinku", "rank": "S"},
|
||||||
|
"1091": {"name": "Lacrimosa", "rank": "S"}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,51 @@
|
||||||
{
|
{
|
||||||
|
"BussinessCard_MangHe_bsj": {"type": "cosmetic", "name": "Trackside Shadow", "rank": "S"},
|
||||||
|
"CharacterUpMaterial_lv3": {"type": "item", "name": "Elite Hunter Guide", "rank": "A"},
|
||||||
|
"CityAbility_UpMaterial": {"type": "item", "name": "Dreamless Seed", "rank": "B"},
|
||||||
"Dice_ticket_01": {"type": "item", "name": "Warp Piece", "rank": "S"},
|
"Dice_ticket_01": {"type": "item", "name": "Warp Piece", "rank": "S"},
|
||||||
"Dice_ticket_02": {"type": "item", "name": "Lost Piece", "rank": "A"},
|
"Dice_ticket_02": {"type": "item", "name": "Lost Piece", "rank": "A"},
|
||||||
"Dicelimite": {"type": "item", "name": "Solid Dice", "rank": "S"},
|
"Dicelimite": {"type": "item", "name": "Solid Dice", "rank": "S"},
|
||||||
"DiceNormal": {"type": "item", "name": "Fabricated Dice", "rank": "S"},
|
"DiceNormal": {"type": "item", "name": "Fabricated Dice", "rank": "S"},
|
||||||
|
"Fashion_1051_rpg_level3_Base": {"type": "cosmetic", "name": "Glory Days", "rank": "S"},
|
||||||
|
"Fashion_1051_rpg_level3_Dye1": {"type": "cosmetic", "name": "Glory Days - Braveheart", "rank": "S"},
|
||||||
|
"Fashion_1051_rpg_level3_Dye2": {"type": "cosmetic", "name": "Glory Days - Starfall", "rank": "S"},
|
||||||
|
"Fashion_1075_rpg_level2_Base": {"type": "cosmetic", "name": "Archmage", "rank": "S"},
|
||||||
"Fashion_character_1004_01": {"type": "cosmetic", "name": "Gilded Rhapsody", "rank": "S"},
|
"Fashion_character_1004_01": {"type": "cosmetic", "name": "Gilded Rhapsody", "rank": "S"},
|
||||||
"Fashion_character_1010": {"type": "cosmetic", "name": "Phoenix Kick", "rank": "S"},
|
"Fashion_character_1010": {"type": "cosmetic", "name": "Phoenix Kick", "rank": "S"},
|
||||||
|
"Fashion_character_1010_swimsuit": {"type": "cosmetic", "name": "Sunny Surf", "rank": "S"},
|
||||||
|
"Fashion_character_1019_swimsuit": {"type": "cosmetic", "name": "Saltwater Taffy", "rank": "S"},
|
||||||
|
"Fashion_character_1036_03": {"type": "cosmetic", "name": "Autumn Vignette", "rank": "S"},
|
||||||
|
"Fashion_character_1051_07": {"type": "cosmetic", "name": "Perfect Partners", "rank": "S"},
|
||||||
|
"Fashion_character_1051_swimsuit": {"type": "cosmetic", "name": "Cloudless Summer", "rank": "S"},
|
||||||
"Fashion_character_1052_01": {"type": "cosmetic", "name": "Priceless Orchid", "rank": "S"},
|
"Fashion_character_1052_01": {"type": "cosmetic", "name": "Priceless Orchid", "rank": "S"},
|
||||||
"Fashion_character_1071_01": {"type": "cosmetic", "name": "Clear Skies", "rank": "S"},
|
"Fashion_character_1071_01": {"type": "cosmetic", "name": "Clear Skies", "rank": "S"},
|
||||||
"Fashion_character_1075_01": {"type": "cosmetic", "name": "Summer Dream", "rank": "S"},
|
"Fashion_character_1072_01": {"type": "cosmetic", "name": "Surfing Among Stars", "rank": "S"},
|
||||||
"Fashion_character_1076_01": {"type": "cosmetic", "name": "Student of Terrasea", "rank": "S"},
|
"Fashion_character_1076_01": {"type": "cosmetic", "name": "Student of Terrasea", "rank": "S"},
|
||||||
"Fashion_Glide_1004": {"type": "cosmetic", "name": "Tomato Duo", "rank": "A"},
|
"Fashion_Glide_1004": {"type": "cosmetic", "name": "Tomato Duo", "rank": "A"},
|
||||||
"Fashion_Glide_1010": {"type": "cosmetic", "name": "Underboss-of-the-Underboss", "rank": "A"},
|
"Fashion_Glide_1010": {"type": "cosmetic", "name": "Underboss-of-the-Underboss", "rank": "A"},
|
||||||
|
"Fashion_Glide_1036": {"type": "cosmetic", "name": "Scarlet Sash", "rank": "A"},
|
||||||
"Fashion_Glide_1052": {"type": "cosmetic", "name": "Orchid Breeze", "rank": "A"},
|
"Fashion_Glide_1052": {"type": "cosmetic", "name": "Orchid Breeze", "rank": "A"},
|
||||||
"Fashion_Glide_1071": {"type": "cosmetic", "name": "Skyrider", "rank": "A"},
|
"Fashion_Glide_1071": {"type": "cosmetic", "name": "Skyrider", "rank": "A"},
|
||||||
"Fashion_glide_1075": {"type": "cosmetic", "name": "Skyrider", "rank": "A"},
|
"Fashion_Glide_1072": {"type": "cosmetic", "name": "Sheepcopter", "rank": "A"},
|
||||||
|
"Fashion_Glide_1075": {"type": "cosmetic", "name": "Sheepcopter", "rank": "A"},
|
||||||
"Fashion_Glide_1076": {"type": "cosmetic", "name": "Overcast Canopy", "rank": "A"},
|
"Fashion_Glide_1076": {"type": "cosmetic", "name": "Overcast Canopy", "rank": "A"},
|
||||||
"Fashion_vehicle_1004_V021": {"type": "cosmetic", "name": "Tomato Cruise - Livery", "rank": "S"},
|
"Fashion_vehicle_1004_V021": {"type": "cosmetic", "name": "Tomato Cruise - Livery", "rank": "S"},
|
||||||
"Fashion_vehicle_1010_V008": {"type": "cosmetic", "name": "Tiger Incoming! - Livery", "rank": "S"},
|
"Fashion_vehicle_1010_V008": {"type": "cosmetic", "name": "Tiger Incoming! - Livery", "rank": "S"},
|
||||||
|
"Fashion_vehicle_1036_V043": {"type": "cosmetic", "name": "Sandy Mirage - Livery", "rank": "S"},
|
||||||
"Fashion_vehicle_1052_V024": {"type": "cosmetic", "name": "Autumn Haze - Livery", "rank": "S"},
|
"Fashion_vehicle_1052_V024": {"type": "cosmetic", "name": "Autumn Haze - Livery", "rank": "S"},
|
||||||
"Fashion_vehicle_1071_V010": {"type": "cosmetic", "name": "Hound Blitz - Livery", "rank": "S"},
|
"Fashion_vehicle_1071_V010": {"type": "cosmetic", "name": "Hound Blitz - Livery", "rank": "S"},
|
||||||
"Fashion_vehicle_1075_V006": {"type": "cosmetic", "name": "Hidden Dragon - Livery", "rank": "S"},
|
"Fashion_vehicle_1075_V006": {"type": "cosmetic", "name": "Three's Company - Livery", "rank": "S"},
|
||||||
"Fashion_vehicle_1076_V024": {"type": "cosmetic", "name": "Hidden Dragon - Livery", "rank": "S"},
|
"Fashion_vehicle_1076_V024": {"type": "cosmetic", "name": "Hidden Dragon - Livery", "rank": "S"},
|
||||||
"Fashion_vehicleSkin_1052_V016": {"type": "cosmetic", "name": "Golden Breeze - Livery", "rank": "S"},
|
"Fashion_vehicleSkin_1052_V016": {"type": "cosmetic", "name": "Golden Breeze - Livery", "rank": "S"},
|
||||||
"vehicle039": {"type": "item", "name": "Draco", "rank": "S"},
|
|
||||||
"Fashion_1051_rpg_level3_Dye1": {"type": "cosmetic", "name": "Glory Days - Braveheart", "rank": "S"},
|
|
||||||
"Fashion_1051_rpg_level3_Dye2": {"type": "cosmetic", "name": "Glory Days - Starfall", "rank": "S"},
|
|
||||||
"Fashion_1051_rpg_level3_Base": {"type": "cosmetic", "name": "Glory Days", "rank": "S"},
|
|
||||||
"SpecialGift_ticket": {"type": "item", "name": "Floe Cinema Ticket", "rank": "A"},
|
|
||||||
"Fons": {"type": "item", "name": "Fons", "rank": "A"},
|
"Fons": {"type": "item", "name": "Fons", "rank": "A"},
|
||||||
"CharacterUpMaterial_lv3": {"type": "item", "name": "Elite Hunter Guide", "rank": "A"},
|
|
||||||
"Gold": {"type": "item", "name": "Beetle Coin", "rank": "B"},
|
|
||||||
"CityAbility_UpMaterial": {"type": "item", "name": "Dreamless Seed", "rank": "B"},
|
|
||||||
"SpecialGift_letter": {"type": "item", "name": "A Handwritten Letter", "rank": "S"},
|
|
||||||
"Frame_MangHe_shinku": {"type": "cosmetic", "name": "Ember Trail", "rank": "S"},
|
|
||||||
"Fashion_character_1051_07": {"type": "cosmetic", "name": "Perfect Partners", "rank": "S"},
|
|
||||||
"vehicle026": {"type": "item", "name": "Porsche 918 Spyder", "rank": "S"},
|
|
||||||
"Frame_MangHe_bsj": {"type": "cosmetic", "name": "Heartbeat Moment", "rank": "S"},
|
"Frame_MangHe_bsj": {"type": "cosmetic", "name": "Heartbeat Moment", "rank": "S"},
|
||||||
"BussinessCard_MangHe_bsj": {"type": "cosmetic", "name": "Trackside Shadow", "rank": "S"}
|
"Frame_MangHe_shinku": {"type": "cosmetic", "name": "Ember Trail", "rank": "S"},
|
||||||
|
"Frame_MangHe_summer_01": {"type": "cosmetic", "name": "Endless Summer", "rank": "S"},
|
||||||
|
"Gold": {"type": "item", "name": "Beetle Coin", "rank": "B"},
|
||||||
|
"SpecialGift_letter": {"type": "item", "name": "A Handwritten Letter", "rank": "S"},
|
||||||
|
"SpecialGift_ticket": {"type": "item", "name": "Floe Cinema Ticket", "rank": "A"},
|
||||||
|
"vehicle026": {"type": "item", "name": "Porsche 918 Spyder", "rank": "S"},
|
||||||
|
"vehicle039": {"type": "item", "name": "Draco", "rank": "S"},
|
||||||
|
"Vehicle044": {"type": "item", "name": "Tide", "rank": "S"},
|
||||||
|
"weeklycloneboss_selectbox_02": {"type": "item", "name": "Anomaly Pilgrimage Material Selection Box", "rank": "S"}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue