File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-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@v3
23+ with :
24+ dotnet-version : 2.2.x
25+
26+ - name : Generate Async code
27+ run : |
28+ dotnet restore "./Tools/packages.csproj" --packages ./Tools
29+ pushd src
30+ dotnet restore ./NHibernate.sln
31+ dotnet $(find ./../Tools/csharpasyncgenerator.commandline -name AsyncGenerator.CommandLine.dll)
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
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ csharpasyncgenerator.commandline/
44gitreleasemanager /
55obj /
66microsoft. *
7+ netstandard. *
You can’t perform that action at this time.
0 commit comments