Skip to content

Commit 3068427

Browse files
Icon update improvements (#3038)
* Updating icon workflow to auto commit changes * Icon change just for testing * More work, still WIP * [bot] Pack Icon update * Clean up the new icon generation pipeline Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 25123c8 commit 3068427

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

.github/workflows/icon_update.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
schedule:
66
- cron: '0 3 * * *'
77

8+
defaults:
9+
run:
10+
shell: pwsh
11+
812
jobs:
913
build:
1014
#This check prevents this from running on forks
@@ -14,6 +18,8 @@ jobs:
1418

1519
steps:
1620
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
1723

1824
- name: Setup .NET
1925
uses: actions/setup-dotnet@v3
@@ -24,18 +30,9 @@ jobs:
2430
run: dotnet run -c Release -- icons
2531
working-directory: ./mdresgen
2632

27-
- name: Create Pull Request
28-
uses: peter-evans/create-pull-request@v4
29-
with:
30-
commit-message: >
31-
[Icon update detected by Github Action].
32-
Auto generated pull request.
33-
committer: Material Design Service Account <[email protected]>
34-
author: Material Design Service Account <[email protected]>
35-
branch: pipeline/icons
36-
delete-branch: true
37-
base: master
38-
title: Update Icons [GitHub Action]
39-
body: >
40-
[Icon update detected by Github Action].
41-
Auto generated pull request.
33+
- name: Commit changes
34+
run: |
35+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
36+
git config --local user.name "github-actions[bot]"
37+
git commit -m "[bot] Pack Icon update" --all
38+
git push

.github/workflows/pr_verification.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ defaults:
1010
run:
1111
shell: pwsh
1212

13-
env:
14-
solution: MaterialDesignToolkit.Full.sln
15-
buildConfiguration: 'Release'
16-
1713
jobs:
1814
build:
1915
name: Build artifacts

0 commit comments

Comments
 (0)