Skip to content

Commit

Permalink
CI // Merge scripts into one script.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikiSuen committed Jul 22, 2024
1 parent e193ff0 commit 50cf954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update Specimen HSR
name: Update Specimen

on:
workflow_dispatch: {}
Expand All @@ -16,26 +16,24 @@ jobs:
- name: Set up Swift
uses: swift-actions/setup-swift@v2

- name: Fetch latest commit SHA
id: latest_sha
run: echo "::set-output name=sha::$(git ls-remote https://github.com/Dimbreath/StarRailData.git HEAD | cut -f1)"

- name: Update Specimen Data
id: compare_shas
run: |
swift build -c release
rm -rf ./Specimen/OUTPUT-HSR.json || true
rm -rf ./Specimen/OUTPUT-GI.json || true
.build/release/GachaMetaGenerator -HSR > ./Specimen/OUTPUT-HSR.json
.build/release/GachaMetaGenerator -GI > ./Specimen/OUTPUT-GI.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-gacha-meta-${{ github.run_number }}
base: main
title: "Update Specimen HSR"
title: "Update Specimen"
body: |
This PR updates the gacha meta and other assets (see update_other_meta.py for details).
This PR updates the gacha meta specimen.
delete-branch: true
assignees: ShikiSuen
reviewers: ShikiSuen
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/update_specimen_GI.yml

This file was deleted.

0 comments on commit 50cf954

Please sign in to comment.