Skip to content

Commit

Permalink
tools(//.github): Update event info path
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Nov 10, 2020
1 parent 6f62738 commit d71658b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/run_cpp_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
token = os.environ['GITHUB_TOKEN']
gh = Github(token)

event_file_path = os.environ['GITHUB_EVENT_PATH']
event_file_path = "/GITHUB_EVENT.json"
with open(event_file_path, 'r') as f:
j = f.read()
event = json.load(j)
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/run_py_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
token = os.environ['GITHUB_TOKEN']
gh = Github(token)

event_file_path = os.environ['GITHUB_EVENT_PATH']
event_file_path = "/GITHUB_EVENT.json"
with open(event_file_path, 'r') as f:
j = f.read()
event = json.load(j)
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Docker Login
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN
env:
Expand All @@ -31,6 +33,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Docker Login
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN
env:
Expand Down

0 comments on commit d71658b

Please sign in to comment.