-
Notifications
You must be signed in to change notification settings - Fork 60
57 lines (54 loc) · 1.71 KB
/
add_plugin_placeholder_in_vpr.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
51
52
53
54
55
56
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: ''
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 generate_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 }}