diff --git a/action.yml b/action.yml index cda2d6a..0c37c25 100644 --- a/action.yml +++ b/action.yml @@ -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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ inputs.repo-token }} diff --git a/branchwrite.py b/branchwrite.py index aae6087..44e1d9c 100644 --- a/branchwrite.py +++ b/branchwrite.py @@ -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] diff --git a/cool/insight.json b/cool/insight.json new file mode 100644 index 0000000..b6fc4c6 --- /dev/null +++ b/cool/insight.json @@ -0,0 +1 @@ +hello \ No newline at end of file