Verification Request: @theproductroadmap/homebridge-adjustable-timer #173
This file contains 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: Plugin Checks (Request) | |
on: | |
workflow_dispatch: | |
inputs: | |
plugin: | |
description: Plugin Name | |
required: true | |
type: string | |
issues: | |
types: | |
- opened | |
issue_comment: | |
types: | |
- created | |
jobs: | |
check-plugin: | |
runs-on: ubuntu-latest | |
if: (github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'request-verification')) || | |
(github.event_name == 'issue_comment' && github.event.comment.body == '/check' && contains(github.event.issue.labels.*.name, 'request-verification')) || | |
(github.event_name == 'workflow_dispatch' && inputs.plugin) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies & Build | |
run: npm install && npm run plugin-checks:build | |
- name: Extract Plugin Name | |
id: extract | |
run: | | |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then | |
PLUGIN_NAME=${{ github.event.inputs.plugin }} | |
else | |
BODY="${{ github.event.issue.body }}" | |
PLUGIN_NAME=$(echo "$BODY" | awk 'NR==3' | tr -d ' ') | |
fi | |
echo "PLUGIN_NAME=$PLUGIN_NAME" >> $GITHUB_ENV | |
- name: Check Plugin | |
uses: ./src/plugin-checks | |
with: | |
plugin: ${{ env.PLUGIN_NAME }} |