Maintenance #199
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2018-2026 tdlib.native contributors <https://github.com/ForNeVeR/tdlib.native> | |
| # | |
| # SPDX-License-Identifier: BSL-1.0 | |
| # This file is auto-generated. | |
| name: Maintenance | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - renovate/** | |
| pull_request: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: 0 0 * * * | |
| workflow_dispatch: | |
| jobs: | |
| update-tdlib: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
| DOTNET_NOLOGO: 1 | |
| NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages | |
| steps: | |
| - name: Check out the sources | |
| uses: actions/checkout@v6 | |
| - name: NuGet cache | |
| uses: actions/cache@v5 | |
| with: | |
| key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.*proj') }} | |
| path: ${{ github.workspace }}/.github/nuget-packages | |
| - name: Set up .NET SDK | |
| uses: actions/setup-dotnet@v5 | |
| - id: update-dependency | |
| name: Update TDLib | |
| shell: pwsh | |
| run: dotnet fsi "./update-tdlib.fsx" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && steps.update-dependency.outputs.has-changes == 'true' | |
| name: Create a pull request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| author: tdlib-native automation <friedrich@fornever.me> | |
| body: ${{ steps.update-dependency.outputs.body }} | |
| branch: ${{ steps.update-dependency.outputs.branch-name }} | |
| commit-message: ${{ steps.update-dependency.outputs.commit-message }} | |
| title: ${{ steps.update-dependency.outputs.title }} | |
| update-tdsharp: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
| DOTNET_NOLOGO: 1 | |
| NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages | |
| steps: | |
| - name: Check out the sources | |
| uses: actions/checkout@v6 | |
| - name: NuGet cache | |
| uses: actions/cache@v5 | |
| with: | |
| key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.*proj') }} | |
| path: ${{ github.workspace }}/.github/nuget-packages | |
| - name: Set up .NET SDK | |
| uses: actions/setup-dotnet@v5 | |
| - id: update-dependency | |
| name: Update tdsharp | |
| shell: pwsh | |
| run: dotnet fsi "./update-tdsharp.fsx" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && steps.update-dependency.outputs.has-changes == 'true' | |
| name: Create a pull request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| author: tdlib-native automation <friedrich@fornever.me> | |
| body: ${{ steps.update-dependency.outputs.body }} | |
| branch: ${{ steps.update-dependency.outputs.branch-name }} | |
| commit-message: ${{ steps.update-dependency.outputs.commit-message }} | |
| title: ${{ steps.update-dependency.outputs.title }} |