-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (38 loc) · 1.22 KB
/
build-report.yml
File metadata and controls
43 lines (38 loc) · 1.22 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
name: Build Report
on:
push:
branches:
# Run only on pushes to report
- report
schedule:
# Run every day at 9am UTC.
# * is a special character in YAML so you have to quote this string
- cron: '0 9 * * *'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout CSS Audit
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Checkout WordPress Core
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: WordPress/wordpress-develop
path: wordpress
- name: Use Node.js
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Build the audit report
run: npm run css-audit -- wordpress/src/wp-admin/css/*.css wordpress/src/wp-includes/css/*.css
- name: Commit and push
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # 1.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: "[Automated] Update report"
branch: "report"
add: "public"