forked from misternebula/Steam-App-Branch-Watcher-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.25 KB
/
main.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
41
on:
schedule:
- cron: "*/1440 * * * *"
workflow_dispatch:
jobs:
check:
if: ${{ github.repository != 'misternebula/Steam-App-Branch-Watcher-Template' }}
name: check steam branches
runs-on: windows-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Install dependencies
run: |
dotnet add package Newtonsoft.Json --version 13.0.3
dotnet add package CSharpDiscordWebhook.NET --version 2.7.1
dotnet add package SteamKit2 --version 2.4.1
- name: Build
run: dotnet build
- name: Run program
run: |
./bin/Debug/net6.0/SteamAppBranchWatcher.exe '${{ secrets.STEAM_USERNAME }}' '${{ secrets.STEAM_PASSWORD }}' '${{ secrets.DISCORD_WEBHOOK }}' '${{ secrets.DISCORD_SALE_WEBHOOK }}'
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Updated branches.json"
git push