Skip to content

Build Plugins

Build Plugins #10

Workflow file for this run

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