Skip to content

Commit

Permalink
add github actions print_path.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bandeapart committed Dec 14, 2024
1 parent 043f5ad commit 204fab0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/print_path.yml
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 }}"

0 comments on commit 204fab0

Please sign in to comment.