diff --git a/action.yml b/action.yml index f10f6dd..d50a3bb 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,6 @@ name: Autodeploy Setup description: Copy the `autodeploy` scripts into the caller repository, install prerequisites and run `setup.sh`. + inputs: branch: description: "Branch or ref to check out in the caller repository" @@ -33,16 +34,18 @@ runs: path: tmp - name: Deploy files - run: rsync -rlv "$GITHUB_WORKSPACE/tmp/" "${{ inputs.destination }}/" shell: bash + run: | + rsync -rlv "$GITHUB_WORKSPACE/tmp/" "${{ inputs.destination }}/" - name: Run setup.sh + shell: bash run: | $GITHUB_ACTION_PATH/autodeploy/setup.sh "${{ inputs.destination }}" - shell: bash - name: Commit and push changes working-directory: ${{ inputs.destination }} + shell: bash run: | git config user.name "${{ inputs.git_user_name }}" git config user.email "${{ inputs.git_user_email }}" @@ -56,4 +59,3 @@ runs: git commit -m "${{ inputs.commit_message }}" git push origin "HEAD:${{ inputs.branch }}" - shell: bash