Skip to content

Commit

Permalink
CI // Add robot.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikiSuen committed Aug 4, 2024
1 parent e9586b2 commit b7d9188
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/update_specimen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update Specimen

on:
workflow_dispatch: {}
schedule:
- cron: '0 12 * * *'

jobs:
update:
runs-on: macOS-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Swift
uses: swift-actions/setup-swift@v2

- name: Update Specimen Data
id: compare_shas
run: |
swift build -c release
rm -rf ./Sources/EnkaDB/Resources/Specimen/ || true
.build/release/EnkaDBGenerator -HSR ./Sources/EnkaDB/Resources/Specimen/HSR/
.build/release/EnkaDBGenerator -GI ./Sources/EnkaDB/Resources/Specimen/GI/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-specimen-${{ github.run_number }}
base: main
title: "Update Specimen"
body: |
This PR updates the generated EnkaDB specimen.
delete-branch: true
assignees: ShikiSuen
reviewers: ShikiSuen
team-reviewers: |
owners
maintainers

0 comments on commit b7d9188

Please sign in to comment.