Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed May 20, 2023
1 parent c8343b8 commit 6dc0e4e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
# uses: shipyard/github-action/fetch-shipyard-env@1.0.0
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
#- name: Print generated pr description
# run: echo "${{ steps.pr.outputs.text }}"
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ runs:
INPUT_HEADER: ${{ inputs.header }}
INPUT_MODEL: ${{ inputs.model }}
OPENAI_API_KEY: ${{ inputs.api-key }}
GITHUB_TOKEN: ${{ inputs.github-token }}
GH_TOKEN: ${{ inputs.github-token }}
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ preflights:
- INPUT_HEADER
- INPUT_MODEL
- OPENAI_API_KEY
- GITHUB_TOKEN
- GH_TOKEN
logs:
logging: 'configuration/logging.conf'
profile: action # choose(dev|action)
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def main():
logs.init(config)
env = preflight.Env(config)

github_token = env.vars['GITHUB_TOKEN']
github_token = env.vars['GH_TOKEN']
pullrequest = pr.PullRequest(github_token)
logging.info(pullrequest)

Expand Down

0 comments on commit 6dc0e4e

Please sign in to comment.