Skip to content

Commit 1e7a865

Browse files
committed
added GitHub token
1 parent 9e09c6a commit 1e7a865

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: "Python Code Style Action"
22
description: "This action helps python code to adhere to the celebrate coding standards."
3+
inputs:
4+
github_token:
5+
description: ""
6+
required: false
7+
default: ${{ github.token }}
38
runs:
49
using: "composite"
510
steps:
611
- name: Check dependencies
712
shell: bash
8-
run: flake8 --version && pylint --version && lintly --help || pip install -U -r requirements.txt
13+
run: flake8 --version && pylint --version && lintly --help > /dev/null || pip install -U -r requirements.txt
914

1015
- name: Detect changed files
1116
uses: dorny/[email protected]
@@ -20,6 +25,8 @@ runs:
2025
shell: bash
2126
run: |
2227
python $GITHUB_ACTION_PATH/linting_orchestrator.py ${{ github.event_name == 'pull_request' }} flake8 ${{ steps.changes.outputs.addedOrModifiedPython_files }}
28+
env:
29+
GITHUB_TOKEN: ${{ inputs.github_token }}
2330

2431
- name: mypy
2532
uses: tsuyoshicho/[email protected]
@@ -32,3 +39,5 @@ runs:
3239
shell: bash
3340
run: |
3441
python $GITHUB_ACTION_PATH/linting_orchestrator.py ${{ github.event_name == 'pull_request' }} pylint ${{ steps.changes.outputs.addedOrModifiedPython_files }}
42+
env:
43+
GITHUB_TOKEN: ${{ inputs.github_token }}

0 commit comments

Comments
 (0)