-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
45 lines (37 loc) · 1.23 KB
/
action.yml
File metadata and controls
45 lines (37 loc) · 1.23 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
name: Code.json 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"
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: Dockerfile
branding:
icon: "file-text"
color: "blue"