Update package from Github #377
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- uses: actions/setup-node@v3 | |
- 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 |