File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : ' WordPress Plugin Deploy'
22description : ' Deploy to the WordPress Plugin Repository'
33author : ' 10up'
4+ branding :
5+ icon : ' upload-cloud'
6+ color : ' blue'
47inputs :
58 generate-zip :
69 description : ' Generate package zip file?'
710 default : false
811runs :
9- using : ' docker '
10- image : ' Dockerfile '
11- args :
12- - ${{ inputs.generate-zip }}
13- branding :
14- icon : ' upload-cloud '
15- color : ' blue '
12+ using : ' composite '
13+ steps :
14+ - id : deploy
15+ env :
16+ INPUT_GENERATE_ZIP : ${{ inputs.generate-zip }}
17+ run : ${{ github.action_path }}/deploy.sh
18+ shell : bash
Original file line number Diff line number Diff line change @@ -20,14 +20,6 @@ if [[ -z "$SVN_PASSWORD" ]]; then
2020 exit 1
2121fi
2222
23- # Set variables
24- GENERATE_ZIP=false
25-
26- # Set options based on user input
27- if [ -z " $1 " ]; then
28- GENERATE_ZIP=$1 ;
29- fi
30-
3123# Allow some ENV variables to be customized
3224if [[ -z " $SLUG " ]]; then
3325 SLUG=${GITHUB_REPOSITORY#*/ }
@@ -131,7 +123,7 @@ svn status
131123echo " ➤ Committing files..."
132124svn commit -m " Update to version $VERSION from GitHub" --no-auth-cache --non-interactive --username " $SVN_USERNAME " --password " $SVN_PASSWORD "
133125
134- if ! $GENERATE_ZIP ; then
126+ if ! $INPUT_GENERATE_ZIP ; then
135127 echo " Generating zip file..."
136128 mv " ${SVN_DIR} /trunk" " ${SVN_DIR} /${SLUG} "
137129 cd $SVN_DIR
You can’t perform that action at this time.
0 commit comments