-
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (35 loc) · 1.06 KB
/
struct-on-gha.yaml
File metadata and controls
41 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: stuct-on-gha
on:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install StructKit
run: |
pip install git+https://github.com/httpdss/struct.git
structkit -h
- name: Run StructKit
run: |
# structkit generate ...
structkit 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 StructKit generate on repository"
title: "Run StructKit generate on repository"
body: |
This PR was automatically generated by the StructKit action.
base: "main"
assignees: "httpdss"
branch: repository-dispatch/update-${{ github.run_id }}
labels: |
automated-pr