-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
52 lines (51 loc) · 1.38 KB
/
action.yml
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
name: "Build to GIT"
description: ""
inputs:
path:
description: "Previously built folder (needs to be a repo)"
required: true
from:
description: "Newly built code (doesn't need to be a repo)"
required: true
defer-push:
description: "Do not push immediately"
required: false
default: "false"
do-push:
description: "Do a previously deferred push"
required: false
default: "false"
force-ignore:
description: "Force ignore files"
required: false
default: ""
outputs:
manifest:
description: "Manifest of files changed"
value: ${{ steps.main.outputs.manifest }}
manifest-raw:
description: "GIT Diff of commited file"
value: ${{ steps.main.outputs.manifest-raw }}
manifest-full:
description: "Full list of files"
value: ${{ steps.main.outputs.manifest-full }}
runs:
using: "composite"
steps:
- name: Path Setup
if: ${{ inputs.do-push == 'true' }}
id: do-push
shell: bash
env:
PATH_DIR: ${{ inputs.path }}
run: "${{ github.action_path }}/do-push.sh"
- name: Path Setup
if: ${{ inputs.do-push != 'true' }}
id: main
shell: bash
env:
PATH_DIR: ${{ inputs.path }}
FROM_DIR: ${{ inputs.from }}
DEFER_PUSH: ${{ inputs.defer-push }}
FORCE_IGNORE: ${{ inputs.force-ignore }}
run: "${{ github.action_path }}/main.sh"