-
-
Notifications
You must be signed in to change notification settings - Fork 27
28 lines (23 loc) · 951 Bytes
/
update-phars.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
name: Update PHARs
on:
schedule:
- cron: '30 3 * * *'
jobs:
update-phars:
runs-on: ubuntu-latest
name: Create a PR
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
ini-values: "phar.readonly=0"
- name: Configure git
run: git config user.email '[email protected]' && git config user.name 'Jakub Zalas'
- name: Update PHARs
run: make package-devkit update-phars
- name: Send a Pull Request
run: "git diff --exit-code master -- resources/ || hub pull-request -h tools-update -a jakzal -m 'Update tools' -m '' -m ':robot: This pull request was automagically sent from Github'"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}