fix: use git clone instead of actions/checkout, use cmd shell for issue step
CI / test (push) Failing after 8s
CI / test (push) Failing after 8s
This commit is contained in:
@@ -10,6 +10,12 @@ jobs:
|
||||
test:
|
||||
runs-on: shell
|
||||
steps:
|
||||
- name: Checkout code from Gitea
|
||||
run: |
|
||||
git clone --depth 1 http://localhost:3000/pzhang_zywl/document_analyzer.git .
|
||||
git fetch origin ${{ github.sha }}
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
@@ -18,10 +24,6 @@ jobs:
|
||||
|
||||
- name: Create issue on failure
|
||||
if: failure()
|
||||
shell: cmd
|
||||
run: |
|
||||
python scripts/create_failure_issue.py \
|
||||
--sha "${{ github.sha }}" \
|
||||
--branch "${{ github.ref_name }}" \
|
||||
--run "${{ github.run_number }}" \
|
||||
--message "${{ github.event.head_commit.message }}" \
|
||||
--api-token "${{ secrets.document_analyzer }}"
|
||||
python scripts/create_failure_issue.py --sha "${{ github.sha }}" --branch "${{ github.ref_name }}" --run "${{ github.run_number }}" --message "${{ github.event.head_commit.message }}" --api-token "${{ secrets.document_analyzer }}"
|
||||
|
||||
Reference in New Issue
Block a user