Skip to content

Commit 7030ec4

Browse files
author
Jose Diaz-Gonzalez
committed
feat: add support for pushing an arbitrary commit
1 parent 10e4a84 commit 7030ec4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ __Optional__. The branch name that triggered the deploy. Automatically detected
2020

2121
Example Value: `develop`
2222

23+
### `ci_commit`
24+
25+
__Optional__. The commit sha that will be pushed. Automatically detected from `GITHUB_SHA`.
26+
27+
Example Value: `0aa00d8dd7c971c121e3d1e471d0a35e1daf8abe`
28+
2329
### `command`
2430

2531
__Optional__. The command to run for the action (default: deploy).

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ inputs:
1414
description: "The command to run for the action (default: detected from GITHUB_REF)"
1515
required: false
1616
default: ""
17+
ci_commit:
18+
description: "The commit sha that will be pushed (default: detected from GITHUB_SHA)"
19+
required: false
20+
default: ""
1721
command:
1822
description: "The command to run for the action (default: deploy)"
1923
required: false
@@ -44,6 +48,7 @@ runs:
4448
env:
4549
BRANCH: ${{ inputs.branch }}
4650
CI_BRANCH_NAME: ${{ inputs.ci_branch_name }}
51+
CI_COMMIT: ${{ inputs.ci_commit }}
4752
COMMAND: ${{ inputs.command }}
4853
GIT_PUSH_FLAGS: ${{ inputs.git_push_flags }}
4954
GIT_REMOTE_URL: ${{ inputs.git_remote_url }}

0 commit comments

Comments
 (0)