Collect stats #1
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: Run PowerShell Script and Commit File | |
on: | |
workflow_dispatch: | |
jobs: | |
create-and-commit-stats: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Run PowerShell Script | |
run: | | |
pwsh -File create_stats.ps1 | |
shell: pwsh | |
- name: Commit stats.csv | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add stats.csv | |
git commit -m "Add stats.csv generated by PowerShell script" | |
git push | |
shell: pwsh |