Skip to content

ddns-go

ddns-go #104

Workflow file for this run

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 }}