Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/icon_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
schedule:
- cron: '0 3 * * *'

env:
GH_TOKEN: ${{ github.token }}

defaults:
run:
shell: pwsh
Expand All @@ -30,9 +33,22 @@ jobs:
run: dotnet run -c Release -- icons
working-directory: ./mdresgen

- name: Commit changes
- name: Check for changes
id: check_for_changes
run: |
$hasChanges = $((git status --porcelain).Length -gt 0).ToString().ToLower()
"has_changes=$hasChanges" >> $env:GITHUB_OUTPUT

- name: Open Pull Request
if: ${{ steps.check_for_changes.outputs.has_changes == 'true' }}
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "[bot] Pack Icon update" --all
git push
$commitMessage = @"
[bot] Pack Icon update


skip-checks: true
"@
git commit -m "$commitMessage" --all
git push
1 change: 1 addition & 0 deletions .github/workflows/pr_verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

defaults:
run:
Expand Down