-
Notifications
You must be signed in to change notification settings - Fork 83
39 lines (33 loc) · 882 Bytes
/
php.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
name: Run PHP
on:
workflow_dispatch: {}
schedule:
- cron: '0 5 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run the script
env:
USER_ID: ${{ secrets.USER_ID }}
run: php update.php
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add .
git commit -m "update $(date '+%Y-%m-%d')"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create a new release
id: create_release
uses: actions/create-release@v1
with:
tag_name: "v$(date '+%Y%m%d')"
release_name: "Release $(date '+%Y-%m-%d')"
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}