-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.37 KB
/
setup-clients.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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