Skip to content

Set up Clients

Set up Clients #589

name: "Set up Clients"
on:
workflow_dispatch:
schedule:
- cron: '13 0 * * *'
jobs:
supported-versions-matrix:
name: Supported Versions Matrix
runs-on: ubuntu-latest
outputs:
version: ${{ steps.supported-versions-matrix.outputs.lowest }}
steps:
- uses: actions/checkout@v4
- id: supported-versions-matrix
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
set-up-clients:
name: Set up Clients
runs-on: ubuntu-latest
needs:
- supported-versions-matrix
container:
image: wyrihaximusnet/php:${{ needs.supported-versions-matrix.outputs.version }}-nts-alpine-slim-dev-root
steps:
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: "YYYY/MM/DD"
- uses: actions/checkout@v4
- uses: ramsey/composer-install@v2
- name: Set up clients
run: make setup-clients
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: "setup-clients/${{ steps.current-time.outputs.formattedTime }}"
token: ${{ secrets.SUBSPLIT_GITHUB_TOKEN }}
labels: |
Automated PR
automerge
Enhancement ✨
title: "[SetUp] Updated clients base"
commit-message: |
[SetUp] Updated clients base