Skip to content

Commit

Permalink
Refactor GitHub Actions workflow to include STRUCT generation and aut…
Browse files Browse the repository at this point in the history
…omated PR creation
  • Loading branch information
httpdss committed Sep 27, 2024
1 parent 5d6e2b0 commit 83a7a8b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/struct-on-gha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 83a7a8b

Please sign in to comment.