Skip to content
Merged
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
14 changes: 11 additions & 3 deletions .github/workflows/struct-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
struct_file:
description: 'Path to the STRUCT file'
type: string
required: true
default: '.struct.yaml'
required: false
default: 'file://.struct.yaml'
output_dir:
description: 'Path to the output directory'
type: string
required: true
required: false
default: '.'
args:
description: 'Additional arguments to pass to STRUCT'
Expand Down Expand Up @@ -85,6 +85,8 @@ jobs:
fetch-depth: 1

- name: Run STRUCT
env:
GITHUB_TOKEN: ${{ secrets.token }}
run: |
if [ -d ./custom-structures ]; then

Expand All @@ -107,6 +109,12 @@ jobs:
${{ inputs.output_dir }}
fi

- name: Remove custom-structures before PR generation
run: |
if [ -d ./custom-structures ]; then
rm -rf ./custom-structures
fi

- name: Generate PR with changes
if: github.event_name == 'workflow_dispatch'
uses: peter-evans/create-pull-request@v7
Expand Down
Loading