Skip to content

Commit f73b5da

Browse files
authored
Create main_py_to_bitly.yml
1 parent ed081cd commit f73b5da

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths: [ 'main.py' ]
7+
8+
jobs:
9+
job1:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
output1: ${{ steps.step1.outputs }}
13+
steps:
14+
- id: step1
15+
run: path_of_main_py=`git diff --name-only HEAD~1 HEAD | grep '/main.py'`
16+
17+
job2:
18+
needs: job1
19+
runs-on: ubuntu-latest
20+
steps:
21+
- env:
22+
output1: ${{needs.job1.outputs.output1}}
23+
- run: echo "$output1"
24+

0 commit comments

Comments
 (0)