web-cfw-loader/.github/workflows/update-payloads.yml
Lord Friky 5976e478ab Move the updating payload process to its own script and fix the action
Also, Atmosphere was updated in the process
2023-05-18 00:14:19 -06:00

35 lines
834 B
YAML

name: Update payloads
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * 5" # 3:00 am on fridays
jobs:
Update-Payloads:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install jq
run: sudo apt install -y jq
- name: Update payloads
run: sh extras/update-payloads.sh
- name: Commit changes if necessary
run: |
if [ "$UPDATE" == true ];
then
echo 'Commiting changes!'
git config --global user.name 'GitHub Actions'
git config --global user.email 'github-actions@users.noreply.github.com'
git add --all
git commit -am ":robot: Payloads updated automatically"
git push
else
echo "Commit not needed."
fi