This repository was archived by the owner on Jul 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
74 lines (61 loc) · 2.62 KB
/
auto-update.yml
File metadata and controls
74 lines (61 loc) · 2.62 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Auto Update
on:
schedule:
- cron: '0 0 * * *'
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: 'none'
extensions: 'json,xml,xsl'
ini-values: 'memory_limit=-1'
php-version: '8.0'
tools: pecl
- name: Display versions
run: |
php -r 'foreach (get_loaded_extensions() as $extension) echo $extension . " " . phpversion($extension) . PHP_EOL;'
php -i
- name: Validate composer.json
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: 8.0-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
8.0-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Build files
run: composer run-script build
- name: Get Feather version
id: get-feather-version
run: echo "::set-output name=feather-version::$(composer show npm-asset/feather-icons --format=json | jq -r '.versions[]')"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "Update resources from Feather ${{ steps.get-feather-version.outputs.feather-version }}"
branch: automated/feather-update
delete-branch: true
title: "[AUTO] Feather Update ${{ steps.get-feather-version.outputs.feather-version }}"
body: |
Updated resources built based on Feather ${{ steps.get-feather-version.outputs.feather-version }}.
labels: automated pr
assignees: |
Pixelrobin
natewiebe13
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"