From 83a7a8b5e9a7213234d43229cf189f586fedffb5 Mon Sep 17 00:00:00 2001 From: Kenneth Belitzky Date: Thu, 26 Sep 2024 22:46:32 -0300 Subject: [PATCH] Refactor GitHub Actions workflow to include STRUCT generation and automated PR creation --- .github/workflows/struct-on-gha.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/struct-on-gha.yaml b/.github/workflows/struct-on-gha.yaml index 9a32b9c..f94509c 100644 --- a/.github/workflows/struct-on-gha.yaml +++ b/.github/workflows/struct-on-gha.yaml @@ -25,5 +25,20 @@ jobs: - name: Run STRUCT run: | + # struct generate ... struct list + - name: Generate PR with changes + if: github.event_name == 'workflow_dispatch' + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "Run STRUCT generate on repository" + title: "Run STRUCT generate on repository" + body: | + This PR was automatically generated by the STRUCT action. + base: "main" + assignees: "httpdss" + branch: repository-dispatch/update-${{ github.run_id }} + labels: | + automated-pr