File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Generate Tool Specifications
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches :
6
7
- main
7
8
8
9
permissions :
9
10
contents : write
11
+ pull-requests : write
10
12
11
13
jobs :
12
14
generate-specs :
@@ -50,11 +52,26 @@ jobs:
50
52
echo "specs_changed=true" >> $GITHUB_OUTPUT
51
53
fi
52
54
53
- - name : Commit and push if changed
55
+ - name : Generate GitHub App token
54
56
if : steps.check_changes.outputs.specs_changed == 'true'
55
- run : |
56
- git commit -m "Update tool specifications for $(git describe --tags --abbrev=0)"
57
- git push
57
+ id : app-token
58
+ uses : tibdex/github-app-token@v2
59
+ with :
60
+ app_id : ${{ secrets.CREWAI_RELEASE_TOOL_APP_ID }}
61
+ private_key : ${{ secrets.CREWAI_RELEASE_TOOL_APP_PRIVATE_KEY }}
62
+
63
+ - name : Create Pull Request
64
+ if : steps.check_changes.outputs.specs_changed == 'true'
65
+ uses : peter-evans/create-pull-request@v7
66
+ with :
67
+ token : ${{ steps.app-token.outputs.token }}
68
+ title : " Automatically update tool specifications"
69
+ base : main
70
+ branch : update-tool-specs
71
+ commit-message : " Automatically update tool specifications"
72
+ committer : github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
73
+ author : github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
74
+ delete-branch : false
58
75
59
76
notify-api :
60
77
needs : generate-specs
You can’t perform that action at this time.
0 commit comments