Skip to content

chore(deps): update kotlin monorepo to v2.4.0 #9

chore(deps): update kotlin monorepo to v2.4.0

chore(deps): update kotlin monorepo to v2.4.0 #9

# This file was generated using Kotlin DSL (.github/workflows/regenerate-yarn-lock.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'Regenerate yarn.lock'
on:
issue_comment: {}
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v6'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/regenerate-yarn-lock.yaml'' && ''.github/workflows/regenerate-yarn-lock.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/regenerate-yarn-lock.yaml'''
regenerate-yarn-lock:
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
if: '${{ github.event.issue.pull_request }}'
steps:
- id: 'step-0'
name: 'Print comment'
run: 'echo "Comment: ''${{ github.event.comment.body }}''"'
- id: 'step-1'
uses: 'actions/checkout@v6'
if: '${{ github.event.comment.body == ''regenerate-lock'' }}'
- id: 'step-2'
name: 'Checkout PR branch'
env:
GH_TOKEN: '${{ github.token }}'
run: 'gh pr checkout ${{ github.event.issue.number }}'
if: '${{ github.event.comment.body == ''regenerate-lock'' }}'
- id: 'step-3'
name: 'Regenerate yarn.lock'
run: './gradlew kotlinUpgradeYarnLock'
if: '${{ github.event.comment.body == ''regenerate-lock'' }}'
- id: 'step-4'
name: 'Configure git'
run: |-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
if: '${{ github.event.comment.body == ''regenerate-lock'' }}'
- id: 'step-5'
name: 'Commit and push yarn.lock'
run: |-
git add kotlin-js-store/yarn.lock
git diff --cached --exit-code || git commit -m "Regenerate yarn.lock"
git push
if: '${{ github.event.comment.body == ''regenerate-lock'' }}'