Generate Unstable Branch #422
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: Generate Unstable Branch | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: unstable-branch | |
jobs: | |
build: | |
runs-on: macos-latest | |
if: ${{ github.repository == 'jellyfin/jellyfin-sdk-swift' }} | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
token: ${{ secrets.JF_BOT_TOKEN }} | |
- name: Generate API | |
run: | | |
cd $GITHUB_WORKSPACE | |
make update-unstable | |
- name: Commit changes | |
run: | | |
git config user.name jellyfin-bot | |
git config user.email [email protected] | |
git checkout -B unstable | |
git add . | |
git commit --allow-empty -m "Update unstable generation" | |
git push --force origin unstable |