Code Generation #8
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: "Code Generation" | |
on: workflow_dispatch | |
permissions: | |
contents: write | |
jobs: | |
generation-job: | |
runs-on: ubuntu-latest | |
container: | |
image: openapitools/openapi-generator-cli:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run code generation | |
run: (bash /usr/local/bin/docker-entrypoint.sh generate -i blob/v0.0.1.json --additional-properties moduleName=VultRuby --skip-validate-spec -g ruby ) | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${GITHUB_WORKSPACE} | |
pull-request-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download all workflow artifacts | |
uses: actions/download-artifact@v3 | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |