-
Notifications
You must be signed in to change notification settings - Fork 35
36 lines (26 loc) · 791 Bytes
/
Copy pathphp.yml
File metadata and controls
36 lines (26 loc) · 791 Bytes
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
name: PHP converter
on:
workflow_dispatch:
schedule:
- cron: "10 */24 * * *"
# Updates every 24 hours at 10mins past the hour.
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pull latest changes # In case any changes are made recently
run: git pull origin master
- name: Make converter.php executable # If it is not already
run: chmod +x converter.php
- name: Use converter
run: php ./converter.php
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
./.check.sh
- name: Push Changes
run: git push origin master