Skip to content

Commit

Permalink
oop
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed May 24, 2024
1 parent e817ce5 commit 071fc32
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/actions/setup-config-conf-for-ee/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
- name: Install crudini to manipulate config.conf
run: pip3 install crudini -c requirements.txt
working-directory: .github/workflows
shell: bash

- name: Don't use community edition in config.conf
run: crudini --existing=param --set config.conf community-edition hosts ''
shell: bash

- name: Set host in config file
run: crudini --existing=param --set config.conf enterprise-edition hosts 127.0.0.1
working-directory: test
shell: bash

- name: Set user in config file
run: crudini --existing=param --set config.conf enterprise-edition user superuser
working-directory: test
shell: bash

- name: Set password in config file
run: crudini --existing=param --set config.conf enterprise-edition password superuser
working-directory: test
shell: bash
18 changes: 18 additions & 0 deletions .github/actions/setup-config-conf/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Setup config.conf'
description: 'Setup config.conf from config.conf.template'
inputs:
using-ee-server:
required: false
default: false

runs:
using: "composite"
steps:
- name: Install config.conf to use community edition
run: cp config.conf.template config.conf
working-directory: test
shell: bash

- name: If using EE server, modify config.conf accordingly
if: ${{ inputs.using-ee-server == 'true' }}
uses: ./.github/actions/setup-config-conf-for-ee

0 comments on commit 071fc32

Please sign in to comment.