Deploy Reclaim Attestors #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Reclaim Attestors | |
on: | |
workflow_run: | |
workflows: ["Build & Publish Docker Image"] | |
branches: | |
# change to main when merging to main | |
- main | |
types: | |
- completed | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Deploy Stage | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} | |
script: | | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: 'reclaimprotocol', | |
repo: 'attestor-deployment', | |
workflow_id: 'update-deployment.yaml', | |
ref: 'main', | |
}); |