From 70623ae8a7b471b9d7a573872e17ad57e47ccf92 Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Wed, 20 Dec 2023 23:21:21 +0100 Subject: [PATCH] Checkout repo --- .github/workflows/update-metadata.main.kts | 2 ++ .github/workflows/update-metadata.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-metadata.main.kts b/.github/workflows/update-metadata.main.kts index bd0d476..1308047 100755 --- a/.github/workflows/update-metadata.main.kts +++ b/.github/workflows/update-metadata.main.kts @@ -1,6 +1,7 @@ #!/usr/bin/env kotlin @file:DependsOn("io.github.typesafegithub:github-workflows-kt:1.7.0") +import io.github.typesafegithub.workflows.actions.actions.CheckoutV4 import io.github.typesafegithub.workflows.domain.RunnerType import io.github.typesafegithub.workflows.dsl.workflow import io.github.typesafegithub.workflows.domain.triggers.Push @@ -15,6 +16,7 @@ workflow( id = "generate", runsOn = RunnerType.UbuntuLatest, ) { + uses(action = CheckoutV4()) run( name = "Configure git", command = """ diff --git a/.github/workflows/update-metadata.yaml b/.github/workflows/update-metadata.yaml index 464119c..b113bba 100644 --- a/.github/workflows/update-metadata.yaml +++ b/.github/workflows/update-metadata.yaml @@ -28,13 +28,15 @@ jobs: - 'check_yaml_consistency' steps: - id: 'step-0' + uses: 'actions/checkout@v4' + - id: 'step-1' name: 'Configure git' run: |- git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.name "github-actions[bot]" - - id: 'step-1' + - id: 'step-2' name: 'Run generation logic' run: 'scripts/updateMetadata.main.kts' - - id: 'step-2' + - id: 'step-3' name: 'Push new commit' run: 'git push'