Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (41 loc) · 1.46 KB
/
Copy pathaction.yml
File metadata and controls
50 lines (41 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: automated-codejson-generator
description: "Automatically generates and updates code.json metadata files for CMS repositories"
author: DSACMS
inputs:
GITHUB_TOKEN:
description: "GitHub token used for API access"
required: true
default: ${{ github.token }}
BRANCH:
description: "Name of the branch to update"
required: false
SKIP_PR:
description: "Try to push directly to branch first, fallback to PR if it fails. Requires ADMIN_TOKEN."
required: false
default: "false"
ADMIN_TOKEN:
description: "Personal Access Token with admin/write privileges for direct push. Required when SKIP_PR is true."
required: false
ARCHIVE:
description: "Option to set this tool to archive mode which prepares a repository for archival."
required: false
default: "false"
ENABLE_AI:
description: "Use a local AI model to draft missing fields from the README. Generated fields always go through a pull request."
required: false
default: "false"
outputs:
updated:
description: "Boolean indicating whether code.json was updated"
pr_url:
description: "URL of the created pull request if changes were made via PR"
commit_sha:
description: "SHA of the commit if pushed directly to branch"
method_used:
description: "Method used for the update: 'direct_push' or 'pull_request'"
runs:
using: docker
image: docker://ghcr.io/dsacms/automated-codejson-generator:v2.0.2
branding:
icon: "file-text"
color: "blue"