Auto-update Packages #4339
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
# Check for updates to upstream sources and update the Chocolatey packages automatically. | |
name: Auto-update Packages | |
on: | |
schedule: | |
- cron: 0 */6 * * * | |
workflow_dispatch: | |
jobs: | |
nvidia-geforce-now: | |
name: NVIDIA GeForce NOW | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update NVIDIA GeForce NOW | |
uses: Amadevus/[email protected] | |
with: | |
script: .\manual\nvidia-geforce-now\Update.ps1 ${{ secrets.CHOCO_API_KEY }} | |
- name: Resynchronise repository | |
run: | | |
git fetch | |
git pull | |
- name: Commit NVIDIA GeForce NOW changes | |
run: | | |
$changes = (git status --porcelain) | |
if ($changes.Length -gt 0) | |
{ | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Automatically updated NVIDIA GeForce NOW." | |
} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
project-aurora: | |
name: Project Aurora | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update Project Aurora | |
uses: Amadevus/[email protected] | |
with: | |
script: .\manual\project-aurora\Update.ps1 ${{ secrets.CHOCO_API_KEY }} | |
- name: Resynchronise repository | |
run: | | |
git fetch | |
git pull | |
- name: Commit Project Aurora changes | |
run: | | |
$changes = (git status --porcelain) | |
if ($changes.Length -gt 0) | |
{ | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Automatically updated Project Aurora." | |
} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
ajour: | |
name: Ajour | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update Ajour | |
uses: Amadevus/[email protected] | |
with: | |
script: .\manual\ajour\Update.ps1 ${{ secrets.CHOCO_API_KEY }} | |
- name: Resynchronise repository | |
run: | | |
git fetch | |
git pull | |
- name: Commit Ajour changes | |
run: | | |
$changes = (git status --porcelain) | |
if ($changes.Length -gt 0) | |
{ | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Automatically updated Ajour." | |
} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
wowup: | |
name: WowUp | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update WowUp | |
uses: Amadevus/[email protected] | |
with: | |
script: .\manual\wowup\Update.ps1 ${{ secrets.CHOCO_API_KEY }} | |
- name: Resynchronise repository | |
run: | | |
git fetch | |
git pull | |
- name: Commit WowUp changes | |
run: | | |
$changes = (git status --porcelain) | |
if ($changes.Length -gt 0) | |
{ | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Automatically updated WowUp." | |
} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
wowup-cf: | |
name: WowUp CF | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update WowUp | |
uses: Amadevus/[email protected] | |
with: | |
script: .\manual\wowup-cf\Update.ps1 ${{ secrets.CHOCO_API_KEY }} | |
- name: Resynchronise repository | |
run: | | |
git fetch | |
git pull | |
- name: Commit WowUp changes | |
run: | | |
$changes = (git status --porcelain) | |
if ($changes.Length -gt 0) | |
{ | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Automatically updated WowUp CurseForge." | |
} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
weakauras-companion: | |
name: WeakAuras Companion | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update WeakAuras Companion | |
uses: Amadevus/[email protected] | |
with: | |
script: .\manual\weakauras-companion\Update.ps1 ${{ secrets.CHOCO_API_KEY }} | |
- name: Resynchronise repository | |
run: | | |
git fetch | |
git pull | |
- name: Commit WeakAuras Companion changes | |
run: | | |
$changes = (git status --porcelain) | |
if ($changes.Length -gt 0) | |
{ | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Automatically updated WeakAuras Companion." | |
} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |