30 lines
807 B
YAML
30 lines
807 B
YAML
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"
|
|
required: false
|
|
default: "main"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Checkout caller repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: true
|
|
ref: ${{ inputs.branch }}
|
|
|
|
- name: Copy autodeploy into workspace
|
|
run: |
|
|
cp -R "$GITHUB_ACTION_PATH/autodeploy" "$GITHUB_WORKSPACE/"
|
|
shell: bash
|
|
|
|
- name: Run autodeploy setup script
|
|
working-directory: ${{ github.workspace }}
|
|
run: |
|
|
chmod +x autodeploy/setup.sh
|
|
./autodeploy/setup.sh
|
|
shell: bash
|