From 850677a81dd1d967f645cb5e53d6024a243cee66 Mon Sep 17 00:00:00 2001 From: Emilio Ziniades Date: Wed, 15 May 2024 22:17:21 +0200 Subject: [PATCH] feat(ci): add scheduled job to update all themes (#139) --- .github/workflows/update-all-themes.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/update-all-themes.yml diff --git a/.github/workflows/update-all-themes.yml b/.github/workflows/update-all-themes.yml new file mode 100644 index 0000000..ac1dfd6 --- /dev/null +++ b/.github/workflows/update-all-themes.yml @@ -0,0 +1,25 @@ +name: Update all themes + +on: + workflow_dispatch: + schedule: + - cron: "51 5 * * 1" + +jobs: + update-all-themes: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: "recursive" + - name: Update submodules + run: "git submodule update --remote" + - name: Commit and push changes + run: | + git status + if [[ `git status --short` ]]; then + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -am "Update all themes" + git push + fi