-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6fabce8
Showing
2 changed files
with
1,352 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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/shopware/shopware/releases -O releases.json | ||
git config --global user.name "shopware5" | ||
git config --global user.email "<>" | ||
- name: Verify diff | ||
run: | | ||
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT | ||
- name: Commit changes | ||
if: steps.verify_diff.outputs.changed == 'true' | ||
run: | | ||
git add . | ||
git commit -m "Update releases.json" | ||
git push origin HEAD:main |
Oops, something went wrong.