File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " ATC-rules-update"
2+
3+ on : workflow_dispatch
4+
5+ jobs :
6+ atc_check_for_updates :
7+ runs-on : windows-2022
8+ steps :
9+ - uses : actions/checkout@v2
10+ - name : ⚙ set environment stuff
11+ shell : bash
12+ run : |
13+ echo "build: $GITHUB_RUN_ID"
14+ builddate=$(date '+%Y-%m-%d')
15+ echo "builddate: $builddate"
16+ branch_name="atc-coding-rules-updater-pipeline-run-$builddate-build-$GITHUB_RUN_ID"
17+ echo $branch_name
18+ echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV
19+ - name : ' ⚙ Install ATC Coding Rules updater'
20+ run : dotnet tool install --global atc-coding-rules-updater
21+ - name : ♻️ Run ATC Coding Rules updater
22+ run : atc-coding-rules-updater run --projectPath . --verbose --projectTarget DotNet6 --useTemporarySuppressions
23+ - name : 🐛 Git - show changes
24+ shell : bash
25+ run : |
26+ set -x
27+ git status
28+ git diff
29+ git config --list --show-origin
30+ - run : |
31+ dotnet build -c Release
32+ - name : 💾Create pr
33+ uses : peter-evans/create-pull-request@v3
34+ with :
35+ commit-message : ' Pipeline ran atc-coding-rules-updater Build: ${{ env.GITHUB_RUN_ID}}'
36+ title : ATC Coding Rules Update
37+ body : ATC Coding Rules Updater has been auto-run on the project to update dependencies, rules and needed temporary exceptions
38+ labels : automated pr
39+ branch : ${{ env.BRANCH_NAME }}
40+ delete-branch : true
You can’t perform that action at this time.
0 commit comments