Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insight #4

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ inputs:
runs:
using: "composite"
steps:
- run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir requirements.txt
- name: Checkout repository
uses: actions/checkout@v2
with:
repository: Yanqiao4396/BranchWrite
ref: insight
- run: pwd && echo ${{github.workspace}}
shell: bash
- run: pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir PyGithub
shell: bash
- run: python branchwrite.py ${{ inputs.branch }} ${{ inputs.path }} ${{ inputs.source }} ${{ inputs.source-arg }}
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.repo-token }}
GITHUB_TOKEN: ${{ inputs.repo-token }}
2 changes: 1 addition & 1 deletion branchwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __write_content(self,content):

def main():
args = sys.argv
expected_arg_amount = 4
expected_arg_amount = 5
if len(args) != expected_arg_amount:
raise ValueError(f"4 arguments are expected, {expected_arg_amount - len(args)} from it")
branch_name = args[1]
Expand Down
1 change: 1 addition & 0 deletions cool/insight.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello