-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to supported commit status action
- Loading branch information
1 parent
ee9d811
commit a21df6e
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |