Update #716
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | |
name: "Update" | |
on: # yamllint disable-line rule:truthy | |
schedule: | |
- cron: "0 9 * * *" | |
jobs: | |
schema: | |
name: "Schema" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "7.4" | |
dependencies: | |
- "locked" | |
steps: | |
- name: "Checkout" | |
uses: "actions/[email protected]" | |
- name: "Set up PHP" | |
uses: "shivammathur/[email protected]" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
- name: "Download schema" | |
run: "wget --output-document=test/Fixture/Vendor/Composer/schema.json https://getcomposer.org/schema.json" | |
- name: "Show diff" | |
run: "git diff test/Fixture/Vendor/Composer/schema.json" | |
- name: "Determine composer root version" | |
uses: "ergebnis/.github/actions/composer/[email protected]" | |
- name: "Determine composer cache directory" | |
uses: "ergebnis/.github/actions/composer/[email protected]" | |
- name: "Cache dependencies installed with composer" | |
uses: "actions/[email protected]" | |
with: | |
path: "${{ env.COMPOSER_CACHE_DIR }}" | |
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}" | |
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-" | |
- name: "Install ${{ matrix.dependencies }} dependencies with composer" | |
uses: "ergebnis/.github/actions/composer/[email protected]" | |
with: | |
dependencies: "${{ matrix.dependencies }}" | |
- name: "Laxify schema" | |
run: "php bin/laxify-schema.php" | |
- name: "Open pull request updating schema" | |
uses: "gr2m/create-or-update-pull-request-action@v1" | |
with: | |
author: "ergebnis-bot <[email protected]>" | |
branch: "feature/schema" | |
body: | | |
This PR | |
- [x] updates `schema.json` | |
commit-message: "Enhancement: Update schema.json" | |
path: "test/Fixture/Vendor/Composer/" | |
title: "Enhancement: Update `schema.json`" | |
env: | |
GITHUB_TOKEN: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" |