mirror of
https://github.com/System-End/hackatime-desktop.git
synced 2026-04-19 20:55:13 +00:00
* chore(ci): add linters * chore: apply linter fixes * chore(ci): add cache layer * chore(ci): change lint flavour * chore: apply linter fixes * chore(cI): fix linter errors * chore * chore(ci): add renovate * chore(ci): add renovate workflow * chore( * chore(ci): enable git lfs --------- Co-authored-by: leafdbot[bot] <192038741+leafdbot[bot]@users.noreply.github.com>
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
---
|
|
name: Renovate
|
|
|
|
"on":
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
types: [edited]
|
|
issues:
|
|
types: [edited]
|
|
workflow_dispatch:
|
|
inputs:
|
|
# checkov:skip=CKV_GHA_7:The build output is unaffected by these inputs
|
|
dryRun:
|
|
description: "Dry-Run"
|
|
default: "true"
|
|
required: false
|
|
logLevel:
|
|
description: "Log-Level"
|
|
default: "debug"
|
|
required: false
|
|
|
|
env:
|
|
LOG_LEVEL: info
|
|
DRY_RUN: false
|
|
|
|
jobs:
|
|
renovate:
|
|
name: Renovate
|
|
runs-on: blacksmith-2vcpu-ubuntu-2404
|
|
steps:
|
|
- name: Generate Token
|
|
uses: tibdex/github-app-token@v2
|
|
id: generate-token
|
|
with:
|
|
app_id: ${{ secrets.APP_ID }}
|
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
fetch-depth: 1
|
|
- name: Override default config from dispatch variables
|
|
run: |
|
|
echo "DRY_RUN=${{ github.event.inputs.dryRun || env.DRY_RUN }}" >> "${GITHUB_ENV}"
|
|
echo "LOG_LEVEL=${{ github.event.inputs.logLevel || env.LOG_LEVEL }}" >> "${GITHUB_ENV}"
|
|
- name: Run Renovate
|
|
uses: renovatebot/github-action@v41.0.3
|
|
with:
|
|
configurationFile: .github/renovate-ci.json5
|
|
token: "x-access-token:${{ steps.generate-token.outputs.token }}"
|