Skip to content

Commit

Permalink
Switch to supported commit status action
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Apr 4, 2023
1 parent ee9d811 commit a21df6e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions check-cla/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ runs:
console.log(hasLabel);
core.setOutput('hasLabel', hasLabel);
# commit status → pending
- name: Set commit status with pending
uses: dholth/github-status-action@runs-using-node16
uses: ouzi-dev/commit-status-[email protected]
with:
authToken: ${{ inputs.token }}
context: CLA check
token: ${{ inputs.token }}
name: CLA check
description: Checking conda CLA...
state: pending
sha: ${{ steps.pr.outputs.sha || github.sha }}
status: pending

# contributors, hasSigned
- name: Check if current actor has signed
Expand Down Expand Up @@ -157,23 +157,23 @@ runs:
In order for us to review and merge your code, please e-sign the [Contributor License Agreement PDF](https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement). We then need to manually verify your signature, merge the PR (${{ steps.cla-pr.outputs.pull-request-url }}), and ping the bot to refresh the PR.
GITHUB_TOKEN: ${{ inputs.token }}

# commit status → error
- name: Set commit status to error
if: steps.contributors.outputs.hasSigned == 'false'
uses: dholth/github-status-action@runs-using-node16
uses: ouzi-dev/commit-status-[email protected]
with:
authToken: ${{ inputs.token }}
context: CLA check
token: ${{ inputs.token }}
name: CLA check
description: Please follow the details link to sign the conda CLA. →
state: error
sha: ${{ steps.pr.outputs.sha || github.sha }}
target_url: https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement
url: https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement
status: error

# commit status → success
- name: Set commit status to success
if: steps.contributors.outputs.hasSigned == 'true'
uses: dholth/github-status-action@runs-using-node16
uses: ouzi-dev/commit-status-[email protected]
with:
authToken: ${{ inputs.token }}
context: CLA check
token: ${{ inputs.token }}
name: CLA check
description: CLA signed, thank you!
state: success
sha: ${{ steps.pr.outputs.sha || github.sha }}
status: success

0 comments on commit a21df6e

Please sign in to comment.