Skip to content

Commit 3143bc7

Browse files
authored
GitHub Action for Icon Update (#2303)
* Create icon_update.yml WIP * Update icon_update.yml * Update icon_update.yml * Update icon_update.yml * Update icon_update.yml Use windows * Update icon_update.yml
1 parent 0e1d9b2 commit 3143bc7

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/icon_update.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Icon Update
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 3 * * *'
7+
8+
jobs:
9+
build:
10+
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v1
17+
with:
18+
dotnet-version: 3.1.x
19+
- name: Build
20+
run: dotnet run -c Release -- icons
21+
working-directory: ./mdresgen
22+
- name: Create Pull Request
23+
uses: peter-evans/create-pull-request@v3
24+
with:
25+
commit-message: >
26+
[Icon update detected by Github Action].
27+
Auto generated pull request.
28+
committer: Material Design Service Account <[email protected]>
29+
author: Material Design Service Account <[email protected]>
30+
branch: pipeline/icons
31+
delete-branch: true
32+
base: master
33+
title: Update Icons [GitHub Action]
34+
body: >
35+
[Icon update detected by Github Action].
36+
Auto generated pull request.
37+
38+

0 commit comments

Comments
 (0)