Skip to content

Commit

Permalink
Run cla_check.py from within repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Tomlinson committed Mar 19, 2021
1 parent dcfd44c commit 4b3e162
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- name: Check if CLA signed
id: has_signed_cla
uses: canonical/has-signed-canonical-cla@1.0.5
uses: canonical/has-signed-canonical-cla@1.0.6
with:
username: ${{ github.event.pull_request.user.login }}
base_ref: ${{ github.base_ref }}
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ async function run() {
const base_sha = github.context.payload['pull_request']['base']['sha']
const head_sha = github.context.payload['pull_request']['head']['sha']

await exec.exec('python ./repo/cla_check.py ' + base_sha + '..' + head_sha)
await exec.exec('cp cla_check.py repo/');
await exec.exec('python repo/cla_check.py ' + base_sha + '..' + head_sha)
.then((result) => {
has_signed = true
}).catch((error) => {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "has-signed-canonical-cla",
"version": "1.0.5",
"version": "1.0.6",
"description": "This GitHub Action verifies whether or not a particular GitHub user has signed the Canonical Contributor Licence Agreement (https://ubuntu.com/legal/contributors).",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 4b3e162

Please sign in to comment.