Skip to content

Commit 6448b0a

Browse files
authored
Merge changes from beachbodydigital org (#40)
1 parent 89ae32a commit 6448b0a

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/struct-generate.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66
struct_file:
77
description: 'Path to the STRUCT file'
88
type: string
9-
required: true
10-
default: '.struct.yaml'
9+
required: false
10+
default: 'file://.struct.yaml'
1111
output_dir:
1212
description: 'Path to the output directory'
1313
type: string
14-
required: true
14+
required: false
1515
default: '.'
1616
args:
1717
description: 'Additional arguments to pass to STRUCT'
@@ -85,6 +85,8 @@ jobs:
8585
fetch-depth: 1
8686

8787
- name: Run STRUCT
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.token }}
8890
run: |
8991
if [ -d ./custom-structures ]; then
9092
@@ -107,6 +109,12 @@ jobs:
107109
${{ inputs.output_dir }}
108110
fi
109111
112+
- name: Remove custom-structures before PR generation
113+
run: |
114+
if [ -d ./custom-structures ]; then
115+
rm -rf ./custom-structures
116+
fi
117+
110118
- name: Generate PR with changes
111119
if: github.event_name == 'workflow_dispatch'
112120
uses: peter-evans/create-pull-request@v7

0 commit comments

Comments
 (0)