Skip to content

Commit fc0ef94

Browse files
fixed action
1 parent a0866c0 commit fc0ef94

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/schedule.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '38 17 * * *'
5+
- cron: '4 18 * * *'
66

77
jobs:
88
update-help-post-data:
@@ -11,14 +11,19 @@ jobs:
1111
- name: Checkout code
1212
uses: actions/checkout@v4
1313

14-
- name: Build DotNet
14+
- name: Set up .Net
1515
uses: Elskom/build-dotnet@v1.1.1
1616

17+
- name: Build bot
18+
run: dotnet publish
19+
1720
- name: Create secrets files
21+
if: ${{ success() }}
1822
run: |
19-
echo {{ GH_AUTH }} > /publish/secrets/github_auth
20-
echo {{ BOT_TOKEN }} > /publish/secrets/bot_token
23+
echo ${{ secrets.GH_AUTH }} > ./publish/secrets/github_auth
24+
echo ${{ secrets.BOT_TOKEN }} > ./publish/secrets/bot_token
2125
2226
- name: Start program and update data
27+
if: ${{ success() }}
2328
run: |
2429
./publish/help-channel-mirror -auto

0 commit comments

Comments
 (0)