Generate Referenceable Fields #2
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: Generate Referenceable Fields | |
on: | |
workflow_dispatch: | |
inputs: | |
kong-image-tag: | |
required: true | |
type: string | |
description: | | |
Kong Docker image tag to run, 3.6.1.4. | |
version: | |
required: true | |
type: string | |
description: | | |
Kong Gateway release, e.x. 3.4.x. | |
Used by some commands for storing files in the corresponding folder. | |
kong-image-name: | |
type: choice | |
description: | | |
Kong Docker image name to use, e.g. kong-gateway, kong-gateway-dev. | |
options: | |
- kong-gateway | |
- kong-gateway-dev | |
jobs: | |
generate-referenceable-fields: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: ./.github/reusable-steps/install-deps | |
- name: Run Kong EE | |
uses: ./.github/reusable-steps/run-kong-ee | |
with: | |
op-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
kong-image-tag: ${{ github.event.inputs.kong-image-tag }} | |
kong-image-name: ${{ github.event.inputs.kong-image-name }} | |
- name: Run generate_referenceable_fields_list | |
run: | | |
bundle exec ./plugins generate_referenceable_fields_list --version=${{ github.event.inputs.version }} --plugins $(ls ./schemas) --verbose | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.PAT }} | |
title: "Referenceable fields for ${{ github.event.inputs.version }}" | |
branch: referenceable-fields | |
commit-message: "Referenceable fields for ${{ github.event.inputs.version }}" | |
delete-branch: true | |
add-paths: | | |
./data/referenceable_fields/* | |
- name: Cleanup | |
if: always() | |
uses: ./.github/reusable-steps/cleanup |