-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (41 loc) · 1.17 KB
/
build.yml
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
47
48
49
50
name: Build Plugins
on:
push:
branches: [main]
workflow_dispatch:
inputs:
plugins:
description: "Plugins (space-separated)"
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Plugins
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Build updated plugins
id: build
run: node .github/workflows/build.js ${{ github.event.inputs.plugins }}
- name: Configure Git user
if: steps.build.outputs.built == 'true'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit and push changes
if: steps.build.outputs.built == 'true'
run: |
git add .
git commit -m "${{ steps.build.outputs.message }}"
git push origin main