-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
62 lines (56 loc) · 2.39 KB
/
action.yml
File metadata and controls
62 lines (56 loc) · 2.39 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
51
52
53
54
55
56
57
58
59
60
61
62
name: Create signed commits from local commits or staged changes.
description: |
This GitHub Action simplifies creating signed and verified commits on GitHub.
The created commits will be signed, and committer and author attribution will be the owner of the
token that was used to create the commit. This is part of the GitHub API and cannot be changed.
For the 'push' command, the original commit author and message will be retained as a
"Co-authored-by" trailer and the message body, respectively.
For the 'commit' command, use --author and --message to specify commit metadata. This command
reads staged changes (git add) and can be used to broadcast changes to multiple repositories.
inputs:
token:
description: 'GitHub token'
required: true
default: ${{ github.token }}
target:
description: 'Target owner/repository'
required: true
default: ${{ github.repository }}
branch:
description: 'Target branch name'
required: true
working-directory:
description: 'Switch to this directory before running commit-headless. Useful if you need to commit changes to a secondary repository.'
head-sha:
description: 'Expected commit sha of the remote branch, or the commit sha to branch from.'
create-branch:
description: 'Create the remote branch. Requires head-sha as the branch point.'
default: false
force:
description: 'Force-update the branch ref, allowing non-fast-forward updates. Requires head-sha.'
default: false
command:
description: 'Command to run. One of "commit", "push", or "replay"'
required: true
since:
description: 'For replay, the base commit to replay from (exclusive)'
sign-attempts:
description: 'Max attempts to create each commit with a valid signature. Set to 0 to skip verification.'
default: 5
dry-run:
description: 'Stop processing just before actually making changes to the remote. Note that the pushed_ref output will be a zeroed commit hash.'
default: false
author:
description: 'For commit, the commit author'
default: 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'
message:
description: 'For commit, the commit message'
print-version:
# Undocumented: prints version and exits. Used by release workflow.
default: false
outputs:
pushed_ref:
description: 'Commit hash of the last commit created'
runs:
using: 'node24'
main: 'action.js'