-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1008 Bytes
/
ddns-go.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
name: ddns-go
on:
push:
schedule:
- cron: 0 0 * * 0
jobs:
cmp:
uses: WaterLemons2k/.github/.github/workflows/compare.yml@main
with:
new: $(curl -s https://api.github.com/repos/jeessy2/ddns-go/releases/latest | jq -r .tag_name)
git:
needs: cmp
if: needs.cmp.outputs.changed == 'true'
uses: WaterLemons2k/.github/.github/workflows/git.yml@main
with:
run: |
VERSION=${{ needs.cmp.outputs.version }}
sed -i "4c Version: $VERSION" README.md
sed -i "4c 版本:$VERSION" README.zh-CN.md
echo "$VERSION" >VERSION
go run ./tools $VERSION
commit_message: "feat: bump ddns-go to ${{ needs.cmp.outputs.version }}"
docker:
needs: [cmp, git]
if: needs.cmp.outputs.changed == 'true'
uses: WaterLemons2k/Docker/.github/workflows/docker.yml@main
with:
tags: |
waterlemons2k/ddns-go
waterlemons2k/ddns-go:${{ needs.cmp.outputs.version }}
secrets:
TOKEN: ${{ secrets.TOKEN }}