From fe663117462cdffb9eccd5f4c91d405aa02cc9b8 Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Mon, 8 Apr 2024 12:44:57 +0200 Subject: [PATCH] Add GHA runner --- .github/workflows/update_dialogues.yml | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/update_dialogues.yml diff --git a/.github/workflows/update_dialogues.yml b/.github/workflows/update_dialogues.yml new file mode 100644 index 0000000..a6fef36 --- /dev/null +++ b/.github/workflows/update_dialogues.yml @@ -0,0 +1,33 @@ +# Github actions runner will run this script on a schedule + +name: Update Dialogues from Voices of Wynn +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' # Runs at midnight + +jobs: + update-labels: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + + - name: Update Dialogues from Voices of Wynn + run: | + ./Generators/update_voices_dialogues.sh + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6.0.2 + with: + token: ${{ secrets.PRIVATE_TOKEN }} + labels: auto-generated + committer: 'WynntilsBot ' + author: 'WynntilsBot ' + commit-message: "chore: [auto-generated] Update dialogues from Voices of Wynn" + title: "chore: [auto-generated] Update dialogues from Voices of Wynn" + body: | + The Voices of Wynn repository has been updated with new dialogue data. + + This PR has been automatically generated. + branch: update-dialogues