Skip to content

Commit

Permalink
Fix error_exit_code parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rslota committed Jul 5, 2022
1 parent 734d2ae commit 0d527dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ couldn't be set. Please check the stdout to see what went wrong.
## Example usage

```
uses: actions/update-linear-labels-action@v1
uses: v7labs/update-linear-labels-action@v1
with:
label_name: "Backend"
branch_name: "${{ github.head_ref }}"
Expand Down
2 changes: 1 addition & 1 deletion update-linear-labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def label_issue(branch_name, label_to_add, error_exit_code=1):

if __name__ == '__main__':
try:
label_issue(sys.argv[2], sys.argv[1], error_exit_code=int(sys.argv[3]))
label_issue(sys.argv[2], sys.argv[1], error_exit_code=int(sys.argv[4]))
except requests.HTTPError as e:
print("API response: {}".format(e.response.text), flush=True)
raise
Expand Down

0 comments on commit 0d527dd

Please sign in to comment.