-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (50 loc) · 1.25 KB
/
limit.yml
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
45
46
47
48
49
50
51
52
53
54
name: Test Limit
on:
workflow_dispatch:
schedule:
- cron: "23 0 * * *"
push:
branches:
- limit
jobs:
buildmatrix:
name: Create Build Matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Cache Setup
id: cache
uses: actions/cache@v4
with:
path: .github/matrix.cache/
key: ${{ runner.os }}-matrix-${{ hashFiles('.github/matrix.php') }}
- name: Set up matrix
id: set-matrix
run: |
php .github/matrix.php >> $GITHUB_OUTPUT
build:
needs: buildmatrix
name: Build Docker Image for ${{ matrix.release.type }}
runs-on: ubuntu-latest
strategy:
matrix: ${{fromJson(needs.buildmatrix.outputs.matrix)}}
steps:
-
name: Checkout
uses: actions/checkout@v4
workflow-keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}