fix(typegen): 🤖 ✨ #3796
Workflow file for this run
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
| name: Renovate | |
| on: | |
| schedule: | |
| - cron: '0 */2 * * *' # Every 2 hours | |
| pull_request: | |
| types: [closed] | |
| branches: [main] | |
| issues: | |
| types: [edited] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| renovate: | |
| # Filter out noise: only run for schedule, manual dispatch, merged Renovate PRs, | |
| # and human-edited issues (not bot updates to the Dependency Dashboard). | |
| if: >- | |
| github.event_name == 'schedule' || | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'renovate/')) || | |
| (github.event_name == 'issues' && github.event.sender.type != 'Bot') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/create-github-app-token@v3 # zizmor: ignore[github-app] | |
| id: app-token | |
| with: | |
| client-id: ${{ vars.ECOSPARK_CLIENT_ID }} | |
| private-key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Generate Renovate runner config | |
| id: config | |
| env: | |
| REPOSITORY: ${{ github.repository }} | |
| run: | | |
| CONFIG_FILE="$GITHUB_WORKSPACE/.renovate-runner-config.json5" | |
| cat > "$CONFIG_FILE" <<'EOF' | |
| { | |
| $schema: "https://docs.renovatebot.com/renovate-schema.json", | |
| onboarding: false, | |
| requireConfig: "optional", | |
| EOF | |
| echo " repositories: [\"$REPOSITORY\"]," >> "$CONFIG_FILE" | |
| echo '}' >> "$CONFIG_FILE" | |
| echo "Generated config:" | |
| cat "$CONFIG_FILE" | |
| - name: Self-hosted Renovate | |
| uses: renovatebot/github-action@3064367f740a1a91cca218698a63902689cce200 # v46.1.20 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| configurationFile: .renovate-runner-config.json5 | |
| env: | |
| GITHUB_COM_TOKEN: ${{ github.token }} | |
| NODE_OPTIONS: '--max-old-space-size=4096' | |
| LOG_LEVEL: debug |