File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 11name : Github Release
22
33on :
4- push :
5- tags :
6- - ' *'
4+ workflow_dispatch :
5+ schedule :
6+ - cron : ' 0 0 1 * *'
77
88jobs :
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'
You can’t perform that action at this time.
0 commit comments