-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
52 lines (52 loc) · 1.77 KB
/
action.yml
File metadata and controls
52 lines (52 loc) · 1.77 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
name: 'Commit SVN'
description: 'Effettua il commit della repository su SVN'
author: 'favoloso'
branding:
icon: 'package'
color: 'blue'
inputs:
dry-run:
description: "Esegue l'operazione senza committare."
default: 'false'
svn-username:
description: 'Username SVN'
required: true
svn-password:
description: 'Password SVN'
required: true
svn-url:
description: 'URL della repository SVN'
required: true
svn-path:
description: "Path all'interno repository SVN"
default: 'trunk'
svn-include-from:
description: "Path del file .svninclude che definisce l'elenco dei file da includere con rsync. Vedere `man rsync` alla voce `--include-from` e `FILTER RULES` per maggiori informazioni"
default: '.svninclude'
package-json-path:
description: 'Path del package.json da cui estrarre la versione'
default: 'package.json'
commit-message:
description: 'Messaggio del commit (placeholder: %version%, %sha%)'
default: 'Rilascio %version%'
allow-git-files:
description: 'Consente di committare su SVN anche i file di Git'
default: 'false'
runs:
using: 'composite'
steps:
- id: deploy
env:
INPUT_SVN_USERNAME: ${{ inputs.svn-username }}
INPUT_SVN_PASSWORD: ${{ inputs.svn-password }}
INPUT_SVN_URL: ${{ inputs.svn-url }}
INPUT_SVN_PATH: ${{ inputs.svn-path }}
INPUT_SVN_INCLUDE_FROM: ${{ inputs.svn-include-from }}
INPUT_DRY_RUN: ${{ inputs.dry-run }}
INPUT_ALLOW_GIT_FILES: ${{ inputs.allow-git-files }}
INPUT_COMMIT_MESSAGE: ${{ inputs.commit-message }}
INPUT_PACKAGE_JSON_PATH: ${{ inputs.package-json-path }}
FORCE_COLOR: "1" # Per chalk & GH actions
run: |
npx zx ${{ github.action_path }}/deploy.mjs
shell: bash