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