File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Generate
22
33on :
44 repository_dispatch :
5- types : [spec_release ]
5+ types : [release ]
66 workflow_dispatch :
77
88jobs :
@@ -42,10 +42,25 @@ jobs:
4242 - name : Generate
4343 run : ./generate.sh
4444
45- - name : Create Pull Request
46- uses : peter-evans/create-pull-request@v6
47- with :
48- branch : ci/regenerate-from-spec
49- commit-message : " Regenerated from spec"
50- title : " [CI] Regenerated from spec"
51- body : " Regenerated from spec"
45+ - name : Commit and push changes
46+ run : |
47+ git config user.name "github-actions[bot]"
48+ git config user.email "github-actions[bot]@users.noreply.github.com"
49+ git add -A
50+ git diff --staged --quiet || git commit -m "Regenerated from spec"
51+ git push
52+
53+ - name : Create and push tag
54+ run : |
55+ VERSION=$(grep '^version:' vrchat_dart_generated/pubspec.yaml | cut -d' ' -f2)
56+ TAG="vrchat_dart_generated-$VERSION"
57+ git tag "$TAG"
58+ git push origin "$TAG"
59+
60+ publish :
61+ needs : generate
62+ permissions :
63+ id-token : write
64+ uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
65+ with :
66+ working-directory : vrchat_dart_generated
You can’t perform that action at this time.
0 commit comments