From 89c54d5b2863204867d1ad12f67d8ba90934e916 Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR <9496359+MrPowerGamerBR@users.noreply.github.com> Date: Mon, 22 Aug 2022 19:23:22 -0300 Subject: [PATCH] [ci skip] Fix RegEx and add cron job --- .github/workflows/auto-update.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index c59e55e..3e27f0b 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -1,6 +1,8 @@ name: Automatically update Paper commit hash on: workflow_dispatch: {} + schedule: + - cron: "0 0 * * *" jobs: build: runs-on: ubuntu-latest @@ -26,7 +28,7 @@ jobs: - name: Update paperRef in SparklyPaper run: | - sed -i "s/\paperRef=@.*/paperRef=$PAPER_REF/" SparklyPaper/gradle.properties + sed -i "s/\paperRef=.*/paperRef=$PAPER_REF/" SparklyPaper/gradle.properties env: PAPER_REF: ${{ steps.paperRef.outputs.paperRef }}