forked from saveourtool/osv4k
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded Kotlin to 1.8.22 + added action to update yarn.lock (#15)
- Loading branch information
Showing
3 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Update yarn.lock generated by Kotlin Gradle Plugin | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'gradle/libs.versions.toml' | ||
- 'build.gradle.kts' | ||
push: | ||
paths: | ||
- 'gradle/libs.versions.toml' | ||
- 'build.gradle.kts' | ||
|
||
jobs: | ||
update_kjs_yarn_lock: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
# Checkout source branch directly, without merging base into it | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- uses: actions/checkout@v3 | ||
if: github.event_name == 'push' | ||
with: | ||
# Checkout source branch directly, without merging base into it | ||
ref: ${{ github.event.push.ref }} | ||
- name: Generate yarn.lock | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-version: wrapper | ||
arguments: | | ||
kotlinUpgradeYarnLock | ||
--build-cache | ||
-PgprUser=${{ github.actor }} | ||
-PgprKey=${{ secrets.GITHUB_TOKEN }} | ||
- name: Dedupe generated yarn.lock | ||
run: | | ||
npm install -g yarn-deduplicate | ||
yarn-deduplicate | ||
- name: Commit and push if yarn.lock is changed | ||
run: | | ||
git add yarn.lock | ||
if git diff --staged --quiet; then | ||
echo Everything is UP-TO-DATE | ||
else | ||
echo Pushing updated yarn.lock | ||
git config user.name github-actions[bot] | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
git commit -m "Update yarn.lock" | ||
git push | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -737,6 +737,14 @@ dom-serialize@^2.2.1: | |
extend "^3.0.0" | ||
void-elements "^2.0.0" | ||
|
||
[email protected]: | ||
version "0.5.8-rc.4" | ||
resolved "https://registry.yarnpkg.com/dukat/-/dukat-0.5.8-rc.4.tgz#90384dcb50b14c26f0e99dae92b2dea44f5fce21" | ||
integrity sha512-ZnMt6DGBjlVgK2uQamXfd7uP/AxH7RqI0BL9GLrrJb2gKdDxvJChWy+M9AQEaL+7/6TmxzJxFOsRiInY9oGWTA== | ||
dependencies: | ||
google-protobuf "3.12.2" | ||
typescript "3.9.5" | ||
|
||
[email protected]: | ||
version "1.1.1" | ||
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" | ||
|
@@ -1017,6 +1025,11 @@ glob@^7.1.3, glob@^7.1.6, glob@^7.1.7: | |
once "^1.3.0" | ||
path-is-absolute "^1.0.0" | ||
|
||
[email protected]: | ||
version "3.12.2" | ||
resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.12.2.tgz#50ce9f9b6281235724eb243d6a83e969a2176e53" | ||
integrity sha512-4CZhpuRr1d6HjlyrxoXoocoGFnRYgKULgMtikMddA9ztRyYR59Aondv2FioyxWVamRo0rF2XpYawkTCBEQOSkA== | ||
|
||
graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: | ||
version "4.2.11" | ||
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" | ||
|
@@ -1988,6 +2001,11 @@ type-is@~1.6.18: | |
media-typer "0.3.0" | ||
mime-types "~2.1.24" | ||
|
||
[email protected]: | ||
version "3.9.5" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.5.tgz#586f0dba300cde8be52dd1ac4f7e1009c1b13f36" | ||
integrity sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ== | ||
|
||
[email protected]: | ||
version "4.7.4" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" | ||
|