-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (28 loc) · 825 Bytes
/
main.yml
File metadata and controls
30 lines (28 loc) · 825 Bytes
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
name: Update package from Github
on:
workflow_dispatch:
schedule:
- cron: '5 4 * * *'
permissions:
# Required for add-and-commit
contents: write
jobs:
streamlink-twitch-gui-update:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/jod
- name: Install dependencies
run: yarn install
- name: Update package
run: yarn ts-node scripts/release.ts --upload
env:
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes back to the repository
uses: EndBug/add-and-commit@v9
with:
message: Automatic version update
push: true