Skip to content

Commit

Permalink
Merge pull request #1533 from mashhurs/add-plugin-placeholder-workflow
Browse files Browse the repository at this point in the history
Add a workflow to create an empty plugin placeholder in VPR.
  • Loading branch information
mashhurs authored Sep 22, 2023
2 parents cb30e7d + afd71da commit 12d14c8
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 2 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/add_plugin_placeholder_in_vpr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Adds an empty plugin placeholder in VPR

on:
workflow_dispatch:
inputs:
plugin_type:
description: 'Type of plugin: input, filter, output or integration'
required: true
default: 'input'
type: string
plugin_name:
description: 'Name for the plugin being created'
required: true
default: ''
type: string

permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: jruby
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Clone elastic/docs-tools
uses: actions/checkout@v2
with:
repository: elastic/docs-tools
path: docs-tools
fetch-depth: 1
- name: Clone elastic/logstash-docs
uses: actions/checkout@v2
with:
repository: elastic/logstash-docs
path: logstash-docs
ref: versioned_plugin_docs
fetch-depth: 1
- name: Setup git user
working-directory: ./docs-tools
run: |
git config --global user.email [email protected]
git config --global user.name logstashmachine
- run: bundle install
working-directory: ./docs-tools
- name: Create an empty placeholder
working-directory: ./docs-tools
run: bundle exec ruby create_plugin_placeholder.rb --output-path=../ --plugin-type=${{ github.event.inputs.plugin_type }} --plugin-name=${{ github.event.inputs.plugin_name }}
env:
JRUBY_OPTS: "-J-Xmx4g"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/reference_docs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: "Reference Documentation generation for specified version"

run-name: "Reference Documentation generation for ${{ github.event.inputs.branch }}"

on:
Expand All @@ -24,7 +26,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- name: Clone elastic/docs-tools
uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- name: Clone elastic/docs-tools
uses: actions/checkout@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
docs/html_docs
.idea

0 comments on commit 12d14c8

Please sign in to comment.