Skip to content

Commit df550f0

Browse files
authored
Icon update fix (#3046)
* Attempting fix for icon update * Setting environment variable * Set upstream * Setting auto merge of pr branch * Force push * Adding workflow dispatch to PR verification * Skip status checks * Fixing here string * Push and doge checks?
1 parent a26074a commit df550f0

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/icon_update.yml

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

8+
env:
9+
GH_TOKEN: ${{ github.token }}
10+
811
defaults:
912
run:
1013
shell: pwsh
@@ -30,9 +33,22 @@ jobs:
3033
run: dotnet run -c Release -- icons
3134
working-directory: ./mdresgen
3235

33-
- name: Commit changes
36+
- name: Check for changes
37+
id: check_for_changes
38+
run: |
39+
$hasChanges = $((git status --porcelain).Length -gt 0).ToString().ToLower()
40+
"has_changes=$hasChanges" >> $env:GITHUB_OUTPUT
41+
42+
- name: Open Pull Request
43+
if: ${{ steps.check_for_changes.outputs.has_changes == 'true' }}
3444
run: |
3545
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3646
git config --local user.name "github-actions[bot]"
37-
git commit -m "[bot] Pack Icon update" --all
38-
git push
47+
$commitMessage = @"
48+
[bot] Pack Icon update
49+
50+
51+
skip-checks: true
52+
"@
53+
git commit -m "$commitMessage" --all
54+
git push

.github/workflows/pr_verification.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
workflow_dispatch:
89

910
defaults:
1011
run:

0 commit comments

Comments
 (0)