manage ElasticSearch #104
This file contains hidden or 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: manage ElasticSearch | |
| # Action for admins to manually kick off authenticated ElasticSearch | |
| # commands. Anyone who is authorized to manually trigger workflows | |
| # can use this workflow to perform ElasticSearch maintenance in an | |
| # audited way. | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| method: | |
| default: GET | |
| path: | |
| required: true | |
| permissions: {} | |
| jobs: | |
| manage-es: | |
| runs-on: ubuntu-latest | |
| env: | |
| FI_ES_URL: ${{ secrets.ELASTICSEARCH_URL2 }} | |
| steps: | |
| - name: Manage ElasticSearch | |
| run: | | |
| curl -sS -X ${{ inputs.method }} ${{ secrets.ELASTICSEARCH_URL2 }}/${{ inputs.path }} |