35 lines
1009 B
YAML
35 lines
1009 B
YAML
name: renovate
|
|
|
|
on:
|
|
workflow_dispatch: # allows the workflow to be run manually when desired
|
|
branches:
|
|
- main
|
|
schedule: # runs this workflow at the scheduled time (uses UTC, adjust for your timezone)
|
|
- cron: "0 12 * * *"
|
|
push: # runs this workflow when pushes to the main branch are made
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
renovate:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/renovatebot/renovate:latest
|
|
steps:
|
|
- run: |
|
|
echo "len=${#RENOVATE_TOKEN}"
|
|
env:
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
|
|
|
- name: Run cURL command
|
|
run: |
|
|
curl -H "Authorization: token ${#RENOVATE_TOKEN}" https://gitea.crescentec.ch/api/v1/user
|
|
env:
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: renovate
|
|
env:
|
|
RENOVATE_CONFIG_FILE: ${{ gitea.workspace }}/config.js
|
|
LOG_LEVEL: "debug"
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} |