From 8c8c155c9ed90572df5db838c527c9deff24f882 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Wed, 26 Mar 2025 16:25:46 +0100 Subject: [PATCH] chore: weekly check boilerplate --- .github/workflows/update-boilerplate.yml | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/update-boilerplate.yml diff --git a/.github/workflows/update-boilerplate.yml b/.github/workflows/update-boilerplate.yml new file mode 100644 index 00000000..9cca644c --- /dev/null +++ b/.github/workflows/update-boilerplate.yml @@ -0,0 +1,43 @@ +name: Update boilerplate + +on: + schedule: + - cron: '30 3 * * MON' + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + update-cli: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Prepare + uses: ./.github/actions/prepare + + - name: Install Juno CLI + run: npm i -g @junobuild/cli + shell: bash + + - name: Update + run: npm run copy:boilerplate + + - name: Check for Changes + run: | + if ! git diff --quiet; then + echo "CHANGES_DETECTED=true" >> $GITHUB_ENV + fi + + # This action creates a PR only if there are changes. + - name: Create Pull Request + if: env.CHANGES_DETECTED == 'true' + uses: ./.github/actions/create-pr + with: + branch: bot-cli-docs-update + title: 'feat: Update boilerplate' + body: | + Modifications have been made to the templates of the CLI.