Skip to content

Commit 5d0767b

Browse files
committed
update
1 parent 07995af commit 5d0767b

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
name: Github Release
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 1 * *'
77

88
jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- run: |
1414
wget -qO- http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest |
1515
awk -F '|' '$2=="CN" && $3=="ipv4" {printf "%s/%s\n", $4, 32-log($5)/log(2)}' > ignore.list
16-
- uses: ncipollo/release-action@v1
16+
- id: date
17+
run: echo "::set-output name=dt::$(TZ=UTC date +%F)"
18+
- uses: softprops/action-gh-release@v2
1719
with:
18-
artifacts: 'ignore.list'
19-
token: ${{ secrets.GITHUB_TOKEN }}
20-
- uses: slackapi/slack-github-action@v1.16.0
20+
tag_name: ${{ steps.date.outputs.dt }}
21+
files: |
22+
ignore.list
23+
- uses: slackapi/slack-github-action@v1.27.0
2124
with:
2225
channel-id: github
2326
slack-message: 'github release ok'

0 commit comments

Comments
 (0)