From 403634d1982fe74e42301083e6362afd899c77e3 Mon Sep 17 00:00:00 2001 From: Kenneth Belitzky Date: Mon, 3 Mar 2025 23:50:47 -0300 Subject: [PATCH 1/4] Update struct-generate.yaml --- .github/workflows/struct-generate.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/struct-generate.yaml b/.github/workflows/struct-generate.yaml index 21daa68..3aff2b5 100644 --- a/.github/workflows/struct-generate.yaml +++ b/.github/workflows/struct-generate.yaml @@ -104,6 +104,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 From cbdfcecdab7a4c694083038e89465d9f4290f84a Mon Sep 17 00:00:00 2001 From: Kenneth Belitzky Date: Mon, 3 Mar 2025 23:51:16 -0300 Subject: [PATCH 2/4] Update struct-generate.yaml --- .github/workflows/struct-generate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/struct-generate.yaml b/.github/workflows/struct-generate.yaml index 3aff2b5..0d90875 100644 --- a/.github/workflows/struct-generate.yaml +++ b/.github/workflows/struct-generate.yaml @@ -7,7 +7,7 @@ on: description: 'Path to the STRUCT file' type: string required: true - default: '.struct.yaml' + default: 'file://.struct.yaml' output_dir: description: 'Path to the output directory' type: string From 49cc75fab8aa8ca6533b14218478d3a1a00a1627 Mon Sep 17 00:00:00 2001 From: Kenneth Belitzky Date: Tue, 4 Mar 2025 15:24:02 -0300 Subject: [PATCH 3/4] Update struct-generate.yaml --- .github/workflows/struct-generate.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/struct-generate.yaml b/.github/workflows/struct-generate.yaml index 0d90875..589031f 100644 --- a/.github/workflows/struct-generate.yaml +++ b/.github/workflows/struct-generate.yaml @@ -6,12 +6,12 @@ on: struct_file: description: 'Path to the STRUCT file' type: string - required: true + 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' From 48fcbbf9b489d7845982dbdcb08c7d6ae77e95f1 Mon Sep 17 00:00:00 2001 From: Kenneth Belitzky Date: Wed, 5 Mar 2025 12:53:51 -0300 Subject: [PATCH 4/4] Update struct-generate.yaml --- .github/workflows/struct-generate.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/struct-generate.yaml b/.github/workflows/struct-generate.yaml index 589031f..186fbd4 100644 --- a/.github/workflows/struct-generate.yaml +++ b/.github/workflows/struct-generate.yaml @@ -85,6 +85,8 @@ jobs: fetch-depth: 1 - name: Run STRUCT + env: + GITHUB_TOKEN: ${{ secrets.token }} run: | if [ -d ./custom-structures ]; then