Skip to content

Commit

Permalink
Checkout repo
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed Dec 20, 2023
1 parent 5c6e541 commit 70623ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/update-metadata.main.kts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,6 +16,7 @@ workflow(
id = "generate",
runsOn = RunnerType.UbuntuLatest,
) {
uses(action = CheckoutV4())
run(
name = "Configure git",
command = """
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/update-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 70623ae

Please sign in to comment.