fix script.ps1 #125
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: Update JSON | |
on: | |
schedule: | |
- cron: "0 0 * * Sun" | |
workflow_dispatch: | |
push: | |
paths: | |
- ".github/**" | |
jobs: | |
update_apps_list: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run PowerShell script | |
shell: pwsh | |
run: .github/scripts/script.ps1 | |
- name: Commit and push changes | |
run: | | |
if ! git diff --quiet; then | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config user.name "github-actions[bot]" | |
git add . | |
git commit -m "Update install_apps.json" | |
git push | |
else | |
echo "::warning:: No changes to commit." | |
fi |