Skip to content

Commit

Permalink
SW-27115 - create release file
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalThesing committed Jun 6, 2023
0 parents commit 6fabce8
Show file tree
Hide file tree
Showing 2 changed files with 1,352 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/update-file.yml
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
Loading

0 comments on commit 6fabce8

Please sign in to comment.