Rebuild sample UI #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rebuild sample UI | |
| 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: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Setup Node | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| 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 UI with latest dependencies" || true | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7.0.11 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: 'Rebuild with latest dependencies' | |
| title: 'Rebuild with latest dependencies' | |
| body: Weekly build with latest dependencies. | |
| labels: 'dependencies' |