-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (37 loc) · 1007 Bytes
/
mineral.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
38
39
40
name: Mineral
on:
workflow_dispatch:
schedule:
- cron: "0 */3 * * *"
jobs:
fishing:
runs-on: ubuntu-latest
concurrency:
group: mineral
steps:
- uses: actions/checkout@v3
with:
repository: 'LalatinaHub/Mineral'
token: ${{ secrets.GIT_TOKEN }}
- name: Get secrets
run: |
echo ${{ secrets.BOT_TOKEN }} > ./session
echo ${{ secrets.API_ID }} > ./api_id
echo ${{ secrets.API_HASH }} > ./api_hash
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- name: Start Mineral
run: |
npm install && npx tsc && node ./app/index.js
- name: Publish Result
if: ${{ success() }}
uses: EndBug/add-and-commit@v9
with:
add: '["./result"]'
default_author: github_actions
fetch: false
tag_push: "--force"
message: "Update Subscriptions"