Use renovate to update Chrome version

This commit is contained in:
FooIbar committed 2024-10-01 13:51:58 +08:00
1 parent 04ee1a6362
commit 6a47a8a1e1
5 files changed
+20 -32

No files matched your search

@@ -1,29 +0,0 @@
name: 'Update Chrome Version'
on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
jobs:
action:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update Chrome Version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd chrome-for-testing
curl -OLf https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config push.autoSetupRemote true
git switch -c chore/chrome
if git commit -am "Update Chrome version for default User-Agent"; then
git push
gh pr create -f
gh pr merge chore/chrome --auto -dr
fi
+1 -2
View File
@@ -78,8 +78,7 @@ android {
}.standardOutput.asText.get().trim().removePrefix("https://github.com/").removePrefix("git@github.com:")
.removeSuffix(".git")
val chromeVersion = rootProject.layout.projectDirectory.file("chrome-for-testing/LATEST_RELEASE_STABLE").asFile
.readText().substringBefore('.')
val chromeVersion = rootProject.layout.projectDirectory.file("chrome.version").asFile.readText().trim()
defaultConfig {
applicationId = "moe.tarsin.ehviewer"
-1
View File
@@ -1 +0,0 @@
128.0.6613.86
+1
View File
@@ -0,0 +1 @@
128
+18
View File
@@ -16,8 +16,26 @@
"(?<depName>\\S*)\\s*GIT_REPOSITORY https://(?<datasource>.*?)\\.com/(?<packageName>.*?)\\.git\\s*GIT_TAG (?<currentValue>\\S*)"
],
"datasourceTemplate": "{{{datasource}}}-tags"
},
{
"customType": "regex",
"fileMatch": [
"^chrome.version$"
],
"matchStrings": [
"(?<currentValue>\\S+)"
],
"depNameTemplate": "chrome",
"datasourceTemplate": "custom.chrome",
"extractVersionTemplate": "^(?<version>\\d+)"
}
],
"customDatasources": {
"chrome": {
"defaultRegistryUrlTemplate": "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE",
"format": "plain"
}
},
"packageRules": [
{
"description": "Disable updates for SNAPSHOTs",