Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ inputs:
file:
description: 'Path to the file where the OpenVEX document will be written'
required: false
default: '/dev/stdout'
outputs:
openvex:
description: "Generated OpenVEX document"
value: ${{ steps.generate.outputs.openvex }}
runs:
using: "composite"
steps:
- uses: openvex/setup-vexctl@e85ca48f3c8a376289f6476129d59cda82147e71 # v0.1.1
- shell: bash
id: generate
run: |
#!/bin/bash

Expand All @@ -37,4 +43,6 @@ runs:
alias log_error="echo \"ERROR:\""
fi

vexctl generate "${{ inputs.product }}" --file="${{ inputs.file }}" --templates="${{ inputs.templates-dir }}"
echo "openvex<<GITHUB_OUTPUT_EOF" >> $GITHUB_OUTPUT
vexctl generate "${{ inputs.product }}" --file="${{ inputs.file }}" --templates="${{ inputs.templates-dir }}" | tee -a $GITHUB_OUTPUT
echo "GITHUB_OUTPUT_EOF" >> $GITHUB_OUTPUT