forked from bitwiseops/obsidian-kobo-highlights-import
-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (43 loc) · 1.43 KB
/
renovate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Renovate
on:
schedule:
- cron: "0 0 */1 * *"
workflow_dispatch:
jobs:
renovate:
runs-on: arc-runner
steps:
- name: Setup Secrets
run: |
sudo apt-get update && sudo apt-get install -y jq
github_app_id="$(cat /secrets/github-app-id)"
echo "::add-mask::$github_app_id"
echo "GITHUB_APP_ID=$github_app_id" >> "$GITHUB_ENV"
private_key="$(cat /secrets/github-private-key | base64 -d)"
while read -r line;
do
echo "::add-mask::${line}";
done <<< "$private_key"
{
echo "GITHUB_PRIVATE_KEY<<EOF"
echo "$private_key"
echo EOF
} >> "$GITHUB_ENV"
password="$(cat /secrets/github-ghcr-token)"
echo "::add-mask::$password"
echo DOCKER_GHCR_IO_PASSWORD="$password" >> "$GITHUB_ENV"
username="$(cat /secrets/github-ghcr-user)"
echo "::add-mask::$username"
echo DOCKER_GHCR_IO_USERNAME="$username" >> "$GITHUB_ENV"
- name: Get token
id: get_token
uses: actions/create-github-app-token@v1
with:
private-key: ${{ env.GITHUB_PRIVATE_KEY }}
app-id: ${{ env.GITHUB_APP_ID }}
- name: Checkout
uses: actions/[email protected]
- name: Self-hosted Renovate
uses: renovatebot/[email protected]
with:
token: "${{ steps.get_token.outputs.token }}"