-
Notifications
You must be signed in to change notification settings - Fork 24.7k
30 lines (26 loc) · 977 Bytes
/
version-comment.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
name: Add Version Comment
on:
# trigger deployment on every push to main branch
push:
branches: [main]
# trigger deployment manually
workflow_dispatch:
permissions:
contents: write
jobs:
version-comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Modify version worker-vless.js
uses: jaywcjlove/github-action-modify-file-content@main
with:
path: src/worker-vless.js
body: "version base on commit ${{ github.sha }}, time is {{date:YYYY-MM-DD HH:mm:ss}} UTC"
message: "Update version worker-vless.js"
- name: Modify version worker-with-socks5-experimental.js
uses: jaywcjlove/github-action-modify-file-content@main
with:
path: src/worker-with-socks5-experimental.js
body: "version base on commit ${{ github.sha }}, time is {{date:YYYY-MM-DD HH:mm:ss}} UTC"
message: "Update version worker-with-socks5-experimental.js"