From e16ae7d641b84f75bd12179003c693a4690c4c2b Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Wed, 23 Jul 2025 15:51:41 -0600 Subject: [PATCH 1/2] Add workflow to rebuild UI every week --- .github/workflows/rebuild.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/rebuild.yml diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml new file mode 100644 index 0000000..475519b --- /dev/null +++ b/.github/workflows/rebuild.yml @@ -0,0 +1,41 @@ +name: Rebuild sample +on: + schedule: + - cron: 0 0 * * 2 + workflow_dispatch: + +permissions: + contents: read + +jobs: + build: + permissions: + contents: write # for peter-evans/create-pull-request to create branch + pull-requests: write # for peter-evans/create-pull-request to create a PR + name: Rebuild + if: github.repository == 'CrowdStrike/foundry-sample-functions-python' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 22 + - name: Install dependencies + run: npm ci + working-directory: ui/extensions/hello + - name: Build React app + run: npm run build + working-directory: ui/extensions/hello + - name: Create commit + run: | + git add . + git commit -a -m "Rebuild with latest dependencies" || true + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: 'Rebuild with latest dependencies' + title: 'Rebuild with latest dependencies' + body: Weekly build with latest dependencies. + labels: 'dependencies' From 033b7d1d75289203a3db01fbbee3e334f4afa0e0 Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Wed, 23 Jul 2025 15:55:09 -0600 Subject: [PATCH 2/2] Add UI to workflow and commit message --- .github/workflows/rebuild.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml index 475519b..a06aa0a 100644 --- a/.github/workflows/rebuild.yml +++ b/.github/workflows/rebuild.yml @@ -1,4 +1,4 @@ -name: Rebuild sample +name: Rebuild sample UI on: schedule: - cron: 0 0 * * 2 @@ -30,7 +30,7 @@ jobs: - name: Create commit run: | git add . - git commit -a -m "Rebuild with latest dependencies" || true + git commit -a -m "Rebuild UI with latest dependencies" || true - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: