-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.53 KB
/
rebuild.yml
File metadata and controls
46 lines (43 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
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@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Rebuild with latest dependencies'
title: 'Rebuild with latest dependencies'
body: Weekly build with latest dependencies.
labels: 'dependencies'