Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try github invoked renovatee #45

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Try github invoked renovate
so that we can run rustfmt after

Signed-off-by: clux <sszynrae@gmail.com>
  • Loading branch information
clux committed Oct 12, 2024
commit 13fb9e5b7e329ec55b5ef32c34169adb2791b890
24 changes: 24 additions & 0 deletions .github/renovate-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
set -exuo pipefail

# renovate: datasource=github-releases depName=clux/whyq
export YQ_VER=0.10.2
# renovate: datasource=github-releases depName=casey/just
export JUST_VER=1.28.0
# renovate: datasource=github-releases depName=BurntSushi/ripgrep
export RG_VER=14.1.0
# renovate: datasource=github-releases depName=sharkdp/fd
export FD_VER=10.2.0
# renovate: datasource=github-releases depName=chmln/sd
export SD_VER=1.0.0

apt update
apt install -y curl git protobuf-compiler

curl -sSL https://github.com/clux/whyq/releases/download/${YQ_VER}/yq-x86_64-unknown-linux-musl.tar.xz | tar xJ --strip-components=1 -C /usr/local/bin
curl -sSL https://github.com/casey/just/releases/download/${JUST_VER}/just-${JUST_VER}-x86_64-unknown-linux-musl.tar.gz | tar xz -C /usr/local/bin
curl -sSL https://github.com/BurntSushi/ripgrep/releases/download/${RG_VER}/ripgrep-${RG_VER}-x86_64-unknown-linux-musl.tar.gz | tar xz --strip-components=1 -C /usr/local/bin
curl -sSL https://github.com/sharkdp/fd/releases/download/v${FD_VER}/fd-v${FD_VER}-x86_64-unknown-linux-musl.tar.gz | tar xz --strip-components=1 -C /usr/local/bin/ --wildcards '*fd'
curl -sSL https://github.com/chmln/sd/releases/download/v${SD_VER}/sd-v${SD_VER}-x86_64-unknown-linux-musl.tar.gz | tar xz --strip-components=1 -C /usr/local/bin/ --wildcards '*sd'

runuser -u ubuntu renovate
27 changes: 27 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Renovate
on:
push: # while testing
#schedule:
# - cron: "0/15 * * * *"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Self-hosted Renovate
uses: renovatebot/github-action@v40.3.1
with:
token: ${{ secrets.RENOVATE_TOKEN }}
docker-cmd-file: .github/renovate-entrypoint.sh
docker-user: root
configurationFile: .renovate.json5
env:
LOG_LEVEL: 'debug'