forked from vlang/v
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.14 KB
/
daily_update.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
# =============================================================================
# Daily Check to Update
# =============================================================================
# This workflow checks for changes of the docs in the upstream repository and
# creates a pull request if there are any changes.
#
# Note:
# - If the PR contains only the updated.json file, it will be merged automatically.
# - If the PR contains other files, it will be merged manually. Due to reviewing
# the changes for translation. And the merged commit will be tagged and released.
#
name: Daily Update
on:
workflow_dispatch:
schedule:
# Runs at 21:00 UTC every day (06:00 JST)
- cron: '0 21 * * *'
jobs:
automated_build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update
run: make
- name: Create pull request on any file change
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
git-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
branch: update-patch
delete-branch: true