Skip to content

Commit

Permalink
Feature/consume new pr action (#283)
Browse files Browse the repository at this point in the history
* consume new pr status action

* consume new pr status action
  • Loading branch information
stewartie4 authored Aug 9, 2022
1 parent 9876421 commit 98ab639
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,16 @@ jobs:
echo "CURRENT_BRANCH=$(echo $(([ -z '${{ github.head_ref }}' ] && echo ${GITHUB_REF#refs/*/}) || echo '${{ github.head_ref }}'))" >> $GITHUB_ENV
- name: "Set PR status as pending"
uses: niteoweb/[email protected]
uses: 0chain/actions/set-pr-status@master
if: steps.findPr.outputs.number
with:
pr_number: ${{ steps.findPr.outputs.pr }}
description: "System tests running with default config..."
state: "pending"
repository: ${{ github.repository }}
context: "0Chain System Tests"
status_name: "0Chain System Tests"
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
env:
GITHUB_TOKEN: ${{ github.token }}
github_token: ${{ github.token }}

- name: "Deploy 0Chain"
uses: 0chain/actions/deploy-0chain@master
Expand Down Expand Up @@ -107,13 +106,12 @@ jobs:

- name: "Set PR status as ${{ job.status }}"
if: ${{ (success() || failure()) && steps.findPr.outputs.number }}
uses: niteoweb/[email protected]
uses: 0chain/actions/set-pr-status@master
with:
pr_number: ${{ steps.findPr.outputs.pr }}
description: "System tests with default config ${{ job.status }}"
state: ${{ job.status }}
repository: ${{ github.repository }}
context: "0Chain System Tests"
status_name: "0Chain System Tests"
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
env:
GITHUB_TOKEN: ${{ github.token }}
github_token: ${{ github.token }}

0 comments on commit 98ab639

Please sign in to comment.