fix: newHead notification and chainStats period #4652
Workflow file for this run
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: prnet-actions | |
on: | |
pull_request: | |
types: [opened,reopened] | |
issue_comment: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: khan/pull-request-comment-trigger@master | |
id: check | |
with: | |
trigger: '/deploy' | |
- uses: actions/checkout@v1 | |
if: steps.check.outputs.triggered == 'true' | |
- name: GitHub API Request | |
id: request | |
uses: octokit/[email protected] | |
with: | |
route: ${{ github.event.issue.pull_request.url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: steps.check.outputs.triggered == 'true' | |
- uses: ./.github/actions/prnet | |
id: trigger | |
with: | |
action: 'deploy_prnet' | |
circleci_slug: 'gh/Taraxa-project/taraxa-node' | |
circle_token: '${{ secrets.CIRCLE_TOKEN }}' | |
pull_request: '${{ steps.request.outputs.data }}' | |
if: steps.check.outputs.triggered == 'true' | |
redeploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: khan/pull-request-comment-trigger@master | |
id: check | |
with: | |
trigger: '/redeploy' | |
- uses: actions/checkout@v1 | |
if: steps.check.outputs.triggered == 'true' | |
- name: GitHub API Request | |
id: request | |
uses: octokit/[email protected] | |
with: | |
route: ${{ github.event.issue.pull_request.url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: steps.check.outputs.triggered == 'true' | |
- uses: ./.github/actions/prnet | |
id: trigger | |
with: | |
action: 'redeploy_prnet' | |
circleci_slug: 'gh/Taraxa-project/taraxa-node' | |
circle_token: '${{ secrets.CIRCLE_TOKEN }}' | |
pull_request: '${{ steps.request.outputs.data }}' | |
if: steps.check.outputs.triggered == 'true' | |
cleanup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: khan/pull-request-comment-trigger@master | |
id: check | |
with: | |
trigger: '/cleanup' | |
- uses: actions/checkout@v1 | |
if: steps.check.outputs.triggered == 'true' | |
- name: GitHub API Request | |
id: request | |
uses: octokit/[email protected] | |
with: | |
route: ${{ github.event.issue.pull_request.url }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: steps.check.outputs.triggered == 'true' | |
- uses: ./.github/actions/prnet | |
id: trigger | |
with: | |
action: 'cleanup_prnet' | |
circleci_slug: 'gh/Taraxa-project/taraxa-node' | |
circle_token: '${{ secrets.CIRCLE_TOKEN }}' | |
pull_request: '${{ steps.request.outputs.data }}' | |
if: steps.check.outputs.triggered == 'true' |