add some commands in simple checkout workflow
This commit is contained in:
23
workflows/list-files-and-path.yml
Normal file
23
workflows/list-files-and-path.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Echo Current Path and List Files
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # Or your desired branch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
echo-path:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: https://git.phyllo.me/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
steps:
|
||||||
|
- name: Echo Current Path
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
echo "Current working directory:"
|
||||||
|
- name: List Files
|
||||||
|
run: |
|
||||||
|
ls -la
|
||||||
|
echo "Files in current directory:"
|
Reference in New Issue
Block a user