-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 848 Bytes
/
Copy pathtest.yml
File metadata and controls
33 lines (27 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This is a basic workflow that is manually triggered
name: Test workflow
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
branches:
- main
workflow_dispatch:
jobs:
# This workflow contains a single job called "greet"
greet:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Checkout repository
uses: actions/checkout@v2.3.3
- name: Get directories
run: |
echo start
dir=$(find . -mindepth 1 -maxdepth 1 -type d)
dirs=$(dir)
echo "DIR=${dirs:10}" >> $GITHUB_ENV
- name: Send greeting
run: echo "${{ env.DIR }}"