Skip to content

Build

Build #548

Workflow file for this run

name: Build
on:
workflow_dispatch:
schedule:
# Once a day at 01:12.
- cron: '12 1 * * *'
env:
DSA_BUILD_DIR: /tmp/build
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup PHP with composer v2
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2
- name: Setup Git user
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- name: Install Composer dependencies
run: composer install --prefer-dist --optimize-autoloader --no-progress
- name: Build 9.x
run: time php console.php build:composer current
- uses: actions/checkout@v3
with:
ref: 9.x
path: build-9.x
- name: Update 9.x branch
working-directory: build-9.x
run: |
cp $DSA_BUILD_DIR/current.json composer.json
${{ github.workspace }}/tools/git-commit