From 1f44abadae5e3cac729ecb270f935b1d850c1064 Mon Sep 17 00:00:00 2001 From: xpyctumo <30053565+xpyctumo@users.noreply.github.com> Date: Thu, 29 May 2025 19:14:39 +0300 Subject: [PATCH 1/2] ci: add tact-bot for update Tact version and tests --- .github/renovate.json | 28 ++++++++++++++++++++++++++++ .github/workflows/bot.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/renovate.json create mode 100644 .github/workflows/bot.yml diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..3322b228 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "baseBranches": ["main"], + "branchName": "td-nature", + "branchNameStrict": true, + "branchConcurrentLimit": 5, + "prFooter": "", + "prConcurrentLimit": 1, + "separateMajorMinor": false, + "separateMinorPatch": false, + "enabledManagers": ["npm"], + "timezone": "Europe/Moscow", + "packageRules": [ + { + "matchPackagePatterns": ["*"], + "enabled": false + }, + { + "matchPackagePatterns": ["@tact-lang/compiler"], + "enabled": true + }, + { + "matchUpdateTypes": ["minor", "patch"], + "groupSlug": "non-major" + } + ] +} diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml new file mode 100644 index 00000000..55aa9ef6 --- /dev/null +++ b/.github/workflows/bot.yml @@ -0,0 +1,36 @@ +name: Update Tact Version + +on: + workflow_dispatch: + repository_dispatch: + types: [update] + +permissions: + contents: write + pull-requests: write + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Generate GitHub App token + id: app-token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.GH_APP_ID }} + private_key: ${{ secrets.GH_APP_PRIVATE_KEY }} + + - name: Checkout repository + uses: actions/checkout@v4 + with: + token: ${{ steps.app-token.outputs.token }} + fetch-depth: 0 + - name: Run Renovate + uses: renovatebot/github-action@v42.0.4 + with: + token: ${{ steps.app-token.outputs.token }} + configurationFile: .github/renovate.json + env: + RENOVATE_AUTODISCOVER: "false" + RENOVATE_REPOSITORIES: ${{ github.repository }} + LOG_LEVEL: "debug" From aab318c6f23e3d82ac774f110397ebdcb8c4308b Mon Sep 17 00:00:00 2001 From: xpyctumo <30053565+xpyctumo@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:33:21 +0300 Subject: [PATCH 2/2] ci: add blank line between steps --- .github/workflows/bot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index 55aa9ef6..a2d9f549 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -25,6 +25,7 @@ jobs: with: token: ${{ steps.app-token.outputs.token }} fetch-depth: 0 + - name: Run Renovate uses: renovatebot/github-action@v42.0.4 with: