test
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
Usage
|
||||
-----
|
||||
|
||||
Call this composite action from any repository to run the `autodeploy/setup.sh` script included in this repo.
|
||||
|
||||
Example workflow snippet (in the caller repo):
|
||||
|
||||
```yaml
|
||||
name: call-autodeploy
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
run-autodeploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Run autodeploy action from repo
|
||||
uses: your-username/snek/.github/actions/autodeploy@main
|
||||
with:
|
||||
branch: main
|
||||
install_prereqs: 'true'
|
||||
```
|
||||
|
||||
Notes:
|
||||
- The action will `checkout` the caller repository (so it can `git add`/`git commit` and `git push`).
|
||||
- If you rely on `GITHUB_TOKEN` permissions for pushing, ensure `permissions.contents` in the caller workflow allows `write`.
|
||||
- The action copies the `autodeploy` directory from this repo into the caller workspace before running the script.
|
||||
|
||||
Reference in New Issue
Block a user