Use renovate to update Chrome version
This commit is contained in:
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
|
||||
@@ -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 +0,0 @@
|
||||
128.0.6613.86
|
||||
@@ -0,0 +1 @@
|
||||
128
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user