Skip to content

Update file

Update file #121

Workflow file for this run

name: Update file
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update releases.json
run: |
rm releases.json
wget https://api.github.com/repos/shopware5/shopware/releases -O releases.json
git config --global user.name "shopware5"
git config --global user.email "<>"
- name: Verify diff
run: |
git diff . || echo "changed=true" >> $GITHUB_OUTPUT
- name: Commit changes
if: steps.verify_diff.outputs.changed == 'true'
run: |
git add .
git commit -m "chore: Update releases.json"
git push origin HEAD:main