This Action runs the export Command in a specific resource and creates a file with the output. The file created can be read and managed by any post action.
Required The name of the Convox Rack containing the app you wish to run the command against
Required The name of the app you wish to run the command against
Required The name of the resource to run the command against
Required The name of the file that will be created with the output of the export
steps:
- name: login
id: login
uses: convox/action-login@v2
with:
password: ${{ secrets.CONVOX_DEPLOY_KEY }}
- name: Export database
uses: convox/action-export@v1
with:
rack: staging
app: myapp
resource: database
filename: my-file.sql
- name: Read export output
run: cat my-file.sql