Patch AI with s2ma repo #827
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Patch AI with s2ma repo | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
patch-ai: | |
name: Patch AI with s2ma repo | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Patching AI | |
run: | | |
./patchAI-Core.ps1 | |
- name: Push Changes to Github | |
run: | | |
# Check if tree is not clean | |
if($(&git status --porcelain) -ne $null) { | |
$date = Get-Date -Format "MM/dd/yyyy HH:mm K" | |
git config --global user.name 'Jamie Phan' | |
git config --global user.email '[email protected]' | |
git add "." | |
git commit -m "Updated Map Files at $date" | |
git push | |
} else { | |
Write-Output "No changes have been made to git. No updates were found" | |
} |