Compare commits

...

2 commits

Author SHA1 Message Date
b912f9dc22 Update dependency generate-license-file to v3.5.1
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
2024-11-01 15:43:36 +00:00
14e3c538ff
Migrate Renovate setup to setup at Antville.org 2024-11-01 16:28:12 +01:00
8 changed files with 122 additions and 59 deletions

View file

@ -4,20 +4,13 @@ on: workflow_dispatch
jobs:
deploy:
runs-on: ubuntu-latest
runs-on: antville
environment:
name: p3k.org
url: https://blog.p3k.org
steps:
- name: Set up SSH agent
uses: antville/helma/.github/actions/ssh@helma-🐜
with:
config: ${{ vars.SSH_CONFIG }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
- name: Copy files to production server
run: ssh staging-server deploy-antville

42
.github/workflows/renovate.yml vendored Normal file
View file

@ -0,0 +1,42 @@
name: Run Renovate
#on: workflow_dispatch
on:
schedule:
- cron: "42 * * * *"
jobs:
renovate:
runs-on: antville
steps:
- uses: actions/checkout@v4
- name: Run Renovate
run: npx renovate
env:
# Renovate is using this token to retrieve release notes
GITHUB_COM_TOKEN: ${{ secrets.renovate_github_com_token }}
# See <https://docs.renovatebot.com/troubleshooting/#log-debug-levels>
LOG_LEVEL: info # debug | info | warn | error | fatal
RENOVATE_AUTODISCOVER: 'true'
RENOVATE_CONFIG_FILE: renovate.json
RENOVATE_ENDPOINT: ${{ github.api_url }}
RENOVATE_GIT_AUTHOR: Renovate Bot <mail+renovate@antville.org>
#RENOVATE_GIT_IGNORED_AUTHORS:
# - 29139614+renovate[bot]@users.noreply.github.com
RENOVATE_IGNORE_PR_AUTHOR: 'true'
RENOVATE_LOG_FILE: renovate-log.ndjson
RENOVATE_LOG_FILE_LEVEL: debug
RENOVATE_PLATFORM: gitea
RENOVATE_REPOSITORY_CACHE: 'enabled'
# github.token is not working here, it lacks some permissions required by Renovate
RENOVATE_TOKEN: ${{ secrets.renovate_token }} #${{ github.token }}
- name: Save log file
uses: actions/upload-artifact@v3
with:
name: renovate-log.ndjson
path: renovate-log.ndjson

View file

@ -4,25 +4,15 @@ on: workflow_dispatch
jobs:
stage:
runs-on: ubuntu-latest
runs-on: antville
environment:
name: stage
url: https://antville-test.online
url: ${{ vars.stage_url }}
steps:
- uses: actions/checkout@v4
- name: Set up SSH agent
uses: antville/helma/.github/actions/ssh@helma-🐜
with:
config: ${{ vars.SSH_CONFIG }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
known-hosts: ${{ vars.SSH_KNOWN_HOSTS }}
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew :build

View file

@ -1,21 +1,21 @@
name: Mark stale issues and pull requests
on:
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
runs-on: antville
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
- uses: https://github.com/actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ github.token }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'

View file

@ -4,7 +4,7 @@ on: workflow_dispatch
jobs:
test:
runs-on: host-runner
runs-on: debian
environment:
name: p3k.org
@ -15,4 +15,36 @@ jobs:
run: |
whoami
pwd
find -maxdepth 1 /
ls -ahl ~
echo $SHELL
- name: Ping staging server
run: ssh staging-server ping
- uses: actions/checkout@v4
- name: Run Renovate
run: npx renovate
env:
# TODO:
#GITHUB_COM_TOKEN=
# See <https://docs.renovatebot.com/troubleshooting/#log-debug-levels>
LOG_LEVEL: debug # debug | info | warn | error | fatal
#RENOVATE_CONFIG_FILE: ./.gitlab/renovate.json
RENOVATE_ENDPOINT: ${{ github.api_url }}
RENOVATE_GIT_AUTHOR: Renovate Bot <mail+renovate@antville.org>
RENOVATE_LOG_FILE: renovate-log.ndjson
RENOVATE_LOG_FILE_LEVEL: debug
RENOVATE_PLATFORM: gitea
#RENOVATE_REPOSITORIES: $CI_PROJECT_PATH
RENOVATE_AUTODISCOVER: 'true'
RENOVATE_REPOSITORY_CACHE: 'enabled'
RENOVATE_TOKEN: ${{ vars.renovate_token }} #${{ github.token }}
- uses: actions/upload-artifact@v3
with:
name: Renovate log
path: renovate-log.ndjson
#- name: Build with Gradle
# run: ./gradlew :build

69
package-lock.json generated
View file

@ -18,7 +18,7 @@
},
"devDependencies": {
"browserify": "17.0.0",
"generate-license-file": "3.0.1",
"generate-license-file": "3.5.1",
"jsdoc": "4.0.2",
"less": "4.2.0",
"less-plugin-clean-css": "1.5.1",
@ -94,16 +94,6 @@
"dev": true,
"license": "Apache-2.0"
},
"node_modules/@commander-js/extra-typings": {
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/@commander-js/extra-typings/-/extra-typings-11.1.0.tgz",
"integrity": "sha512-GuvZ38d23H+7Tz2C9DhzCepivsOsky03s5NI+KCy7ke1FNUvsJ2oO47scQ9YaGGhgjgNW5OYYNSADmbjcSoIhw==",
"dev": true,
"license": "MIT",
"peerDependencies": {
"commander": "11.1.x"
}
},
"node_modules/@isaacs/cliui": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
@ -1532,17 +1522,6 @@
"source-map": "~0.5.3"
}
},
"node_modules/commander": {
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz",
"integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==",
"dev": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=16"
}
},
"node_modules/common-ancestor-path": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-1.0.1.tgz",
@ -2480,15 +2459,16 @@
}
},
"node_modules/generate-license-file": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/generate-license-file/-/generate-license-file-3.0.1.tgz",
"integrity": "sha512-kQ9IoHX5bcydUugMlhOxxSKbx5zLfSJ8XuWNKZ3Jp/v30VFeAcZ8Ch4zyZcYqmm0IKy6fNzZPe2o8IhNjMQbjA==",
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/generate-license-file/-/generate-license-file-3.5.1.tgz",
"integrity": "sha512-XgZPDopGzFim1Dmp2DdERreSD2rXmLz1X2g1Zx1KnmCNCh4M5BmQT96cSl28nn/HppAzQRZcZgvus6U5Og/vqg==",
"dev": true,
"license": "ISC",
"dependencies": {
"@commander-js/extra-typings": "^11.0.0",
"@commander-js/extra-typings": "^12.0.0",
"@npmcli/arborist": "^7.0.0",
"cli-spinners": "^2.6.0",
"commander": "^12.0.0",
"cosmiconfig": "^9.0.0",
"enquirer": "^2.3.6",
"glob": "^10.3.0",
@ -2501,10 +2481,30 @@
"generate-license-file": "bin/generate-license-file"
}
},
"node_modules/generate-license-file/node_modules/@commander-js/extra-typings": {
"version": "12.1.0",
"resolved": "https://registry.npmjs.org/@commander-js/extra-typings/-/extra-typings-12.1.0.tgz",
"integrity": "sha512-wf/lwQvWAA0goIghcb91dQYpkLBcyhOhQNqG/VgWhnKzgt+UOMvra7EX/2fv70arm5RW+PUHoQHHDa6/p77Eqg==",
"dev": true,
"license": "MIT",
"peerDependencies": {
"commander": "~12.1.0"
}
},
"node_modules/generate-license-file/node_modules/commander": {
"version": "12.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
"integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=18"
}
},
"node_modules/generate-license-file/node_modules/glob": {
"version": "10.4.1",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.4.1.tgz",
"integrity": "sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==",
"version": "10.4.5",
"resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",
"integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",
"dev": true,
"license": "ISC",
"dependencies": {
@ -2512,14 +2512,12 @@
"jackspeak": "^3.1.2",
"minimatch": "^9.0.4",
"minipass": "^7.1.2",
"package-json-from-dist": "^1.0.0",
"path-scurry": "^1.11.1"
},
"bin": {
"glob": "dist/esm/bin.mjs"
},
"engines": {
"node": ">=16 || 14 >=14.18"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
@ -4854,6 +4852,13 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/package-json-from-dist": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
"integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
"dev": true,
"license": "BlueOak-1.0.0"
},
"node_modules/pacote": {
"version": "18.0.6",
"resolved": "https://registry.npmjs.org/pacote/-/pacote-18.0.6.tgz",

View file

@ -40,7 +40,7 @@
},
"devDependencies": {
"browserify": "17.0.0",
"generate-license-file": "3.0.1",
"generate-license-file": "3.5.1",
"jsdoc": "4.0.2",
"less": "4.2.0",
"less-plugin-clean-css": "1.5.1",

View file

@ -20,6 +20,7 @@
},
"labels": ["dependency"],
"gitIgnoredAuthors": ["29139614+renovate[bot]@users.noreply.github.com"],
"packageRules": [
{