-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bandeapart
committed
Dec 14, 2024
1 parent
043f5ad
commit 204fab0
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Print Path | ||
|
||
on: | ||
# push: | ||
# tags: | ||
# - 'v*' # 触发条件:当推送标签以 'v' 开头时 | ||
workflow_dispatch: # 允许手动触发工作流 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 # 使用 Ubuntu 运行环境 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
# with: | ||
# submodules: true | ||
# repository: catpuppyapp/PuppyGit | ||
# fetch-depth: 1 | ||
# ref: main | ||
# path: PuppyGit # if set, must use `$GITHUB_WORKSPACE/PuppyGit` to access the dir, else can simple use `$GITHUB_WORKSPACE` | ||
|
||
- name: Print Path | ||
run: | | ||
echo "launch path after checkout=$(pwd)" | ||
cd ~ | ||
echo "~=$(pwd)" | ||
echo "HOME=$(HOME)" | ||
echo "GITHUB_WORKSPACE=$(GITHUB_WORKSPACE)" | ||
echo "if you want to use `GITHUB_WORKSPACE` in yml, try ${{ github.workspace }}" |