File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate Async code
2+
3+ on :
4+ pull_request_target :
5+ paths :
6+ - ' **.cs'
7+
8+ permissions : {}
9+
10+ jobs :
11+ generate-async :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+ with :
17+ ref : ${{ github.event.pull_request.head.ref }}
18+ repository : ${{ github.event.pull_request.head.repo.full_name }}
19+ token : ${{ secrets.NHIBERNATE_BOT_TOKEN }}
20+
21+ - name : Setup .NET
22+ uses : actions/setup-dotnet@v2
23+ with :
24+ dotnet-version : 6.0.x
25+
26+ - name : Generate Async code
27+ run : |
28+ pushd src
29+ dotnet tool restore
30+ dotnet restore ./NHibernate.sln
31+ dotnet async-generator
32+ popd
33+
34+ - name : Push changes
35+ run : |
36+ git config user.name github-actions[bot]
37+ git config user.email github-actions[bot]@users.noreply.github.com
38+ if [[ -z "$(git status --porcelain)" ]]; then
39+ echo "No changes to commit"
40+ exit 0
41+ fi
42+ git add -A
43+ git commit -am "Generate async files"
44+ git push
You can’t perform that action at this time.
0 commit comments