Skip to content

Commit 5cd86c5

Browse files
authored
Update main_py_to_bitly.yml
1 parent b351b16 commit 5cd86c5

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/main_py_to_bitly.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@
55
jobs:
66
job1:
77
runs-on: ubuntu-latest
8-
outputs:
9-
output1: ${{ steps.step1.outputs }}
108
steps:
119
- uses: actions/checkout@v4
1210
with:
1311
fetch-depth: 2
14-
- id: step1
15-
run: git diff --name-only HEAD~1 HEAD | grep '/main.py'
16-
job2:
17-
needs: job1
18-
runs-on: ubuntu-latest
19-
steps:
20-
- env:
21-
output1: ${{needs.job1.outputs.output1}}
22-
run: echo "$output1"
12+
- name: get path of main.py
13+
with:
14+
path_of_main_py: |
15+
run: git diff --name-only HEAD~1 HEAD | grep '/main.py'
16+
- name: print path_of_main_py
17+
run: echo "${{ steps.with.path_of_main_py }}"

0 commit comments

Comments
 (0)