Skip to content

Commit

Permalink
新增workding-directory (#8)
Browse files Browse the repository at this point in the history
	cd是無效的指令
  • Loading branch information
CarsonSlovoka committed Jul 7, 2022
1 parent 3173933 commit de25dcf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/go_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches-ignore:
- temp
defaults:
run:
# 指如果run的這些屬性沒有設定的時候,其預設值改為我們這裡所設定的數值
working-directory: ./v2
jobs:
test:
strategy:
Expand All @@ -22,9 +26,6 @@ jobs:
- name: Check out code into the Go module directory.
uses: actions/checkout@v2

- name: change dir
run: cd v2

- name: go mod tidy
run: go mod tidy

Expand Down

0 comments on commit de25dcf

Please sign in to comment.