Skip to content

fix(osv): treat published as optional #4

fix(osv): treat published as optional

fix(osv): treat published as optional #4

Workflow file for this run

name: openapi
on:
push:
branches:
- main
paths:
- openapi.yaml
jobs:
trustify-ui:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'trustification' }}
steps:
- uses: actions/checkout@v4
with:
path: trustify
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout trustify-ui
uses: actions/checkout@v4
with:
repository: trustification/trustify-ui
path: trustify-ui
- name: Update trustify-ui
run: |
rm ./trustify-ui/client/openapi/trustd.yaml
cp ./trustify/openapi.yaml ./trustify-ui/client/openapi/trustd.yaml
cd ./trustify-ui
npm ci --ignore-scripts
npm run generate
git diff
- name: Create Pull Request - trustify-ui
uses: peter-evans/create-pull-request@v5
id: ui-pr
with:
token: ${{ secrets.GH_PAT }}
path: ./trustify-ui
commit-message: "update client/openapi/trustd.yaml"
signoff: true
branch-suffix: short-commit-hash
title: "update client/openapi/trustd.yaml"
body: "Update trustify openapi definition"
- name: PR Notifications
run: |
echo "::notice:: Trustify UI Pull Request URL - ${{ steps.ui-pr.outputs.pull-request-url }}"