diff --git a/.github/workflows/create-repo.yml b/.github/workflows/create-repo.yml index 084a81a..795eb4f 100644 --- a/.github/workflows/create-repo.yml +++ b/.github/workflows/create-repo.yml @@ -53,7 +53,7 @@ jobs: if [ ! -f workflow_runs.json ]; then echo "[]" > workflow_runs.json fi - workflow_run=$(jq -n --arg id "${{ github.run_id }}" --arg repoUrl "${{ github.event.inputs.repoUrl }}" --arg branchName "${{ github.event.inputs.branchName }}" --arg docs_repo_name "${{ env.docs_repo_name }}" --arg status "${{ job.status }}" --arg conclusion "${{ job.conclusion }}" --arg created_at "${{ github.event.created_at }}" '{id: $id, repoUrl: $repoUrl, branchName: $branchName, docs_repo_name: $docs_repo_name, status: $status, conclusion: $conclusion, created_at: $created_at}') + workflow_run=$(jq -n --arg id "${{ github.run_id }}" --arg repoUrl "${{ github.event.inputs.repoUrl }}" --arg branchName "${{ github.event.inputs.branchName }}" --arg docs_repo_name "${{ env.docs_repo_name }}" --arg status "${{ job.status }}" --arg conclusion "${{ job.conclusion }}" --arg created_at "$(date -u +"%Y-%m-%dT%H:%M:%SZ")" '{id: $id, repoUrl: $repoUrl, branchName: $branchName, docs_repo_name: $docs_repo_name, status: $status, conclusion: $conclusion, created_at: $created_at}') jq ". += [$workflow_run]" workflow_runs.json > tmp.json && mv tmp.json workflow_runs.json git config --global user.email "code2docs-ai@leansoftx.com" git config --global user.name "code2docs-ai agent" diff --git a/workflow_runs.json b/workflow_runs.json index a179a13..85f84b4 100644 --- a/workflow_runs.json +++ b/workflow_runs.json @@ -6,7 +6,7 @@ "docs_repo_name": "smartcode-workshops_auto-suggest-java", "status": "success", "conclusion": "", - "created_at": "" + "created_at": "2023-09-25T12:34:56Z" }, { "id": "13103514155", @@ -15,6 +15,6 @@ "docs_repo_name": "smartcode-workshops_auto-suggest-java", "status": "success", "conclusion": "", - "created_at": "" + "created_at": "2023-09-25T12:34:56Z" } ]