Dependency Update Check #25
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
name: Dependency Update Check | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Copy script | |
run: cp diff.mjs /tmp/ | |
- uses: actions/checkout@v4 | |
with: | |
repository: shopware/shopware | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Cache | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
key: composer-lock | |
path: composer.lock | |
save-always: true | |
- name: Rename lock | |
if: steps.cache.outputs.cache-hit == 'true' | |
run: mv composer.lock old.lock | |
- name: Install dependencies | |
run: composer install | |
- name: Show diff | |
if: steps.cache.outputs.cache-hit == 'true' | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
run: node /tmp/diff.mjs | |