Skip to content
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
6 changes: 4 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Niyuhang2' }}
name: Unit Test (ODC)
steps:
# To use this repository's private action,
Expand All @@ -11,5 +12,6 @@ jobs:
uses: actions/checkout@v4
- name: get ip
run: curl ifconfig.me
- name: Run unit test++odc_ut_test++COMMIT=${{ github.sha }}
run: echo ${{ github.event.pull_request.head.sha }}
- name: action by obfarm
uses: ./
id: farm
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM python:3.6

RUN pip3 install requests -i https://mirrors.aliyun.com/pypi/simple/
RUN pip3 install oss2 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip3 install requests -i https://mirrors.aliyun.com/pypi/simple/ && pip3 install art -i https://mirrors.aliyun.com/pypi/simple/
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY obfarm.py /obfarm.py

Expand Down
10 changes: 3 additions & 7 deletions obfarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ def set_output(output):


if __name__ == "__main__":
print(sys.argv)
if len(sys.argv) < 3:
print("缺失相关参数")
OUTPUT.update({"success": -1})
exit(1)
main(sys.argv[1], sys.argv[2])

from art import text2art
logo = text2art("OceanBase Farm")
print(logo)
2 changes: 2 additions & 0 deletions proxy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
# owner: niyuhang.nyh