-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 893 Bytes
/
debug.yml
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
34
35
36
37
38
39
40
41
42
43
44
name: Actions Debugging Scripts
on:
workflow_dispatch:
env:
REPO_NAME:
jobs:
hello-world:
if: false
runs-on: ubuntu-latest
outputs:
parsed-msg: ${{ steps.py-script.outputs.parsed-msg }}
steps:
- uses: actions/checkout@v3
- name: Python Script
id: py-script
run: |
python .github/scripts/debug.py
env:
GITHUB_REPO_PATH: ${{ github.repository }}
marco-polo:
if: false
runs-on: ubuntu-latest
needs: [hello-world]
steps:
- name: Script Output in another Job
run: echo "${{needs.hello-world.outputs.parsed-msg}}"
# ${GITHUB_REPOSITORY#*/}
string-substitution:
runs-on: ubuntu-latest
steps:
- run: |
echo "${{ github.repository }}"
echo "$REPO_NAME"
env:
REPO_NAME: ${${{ github.repository }}#*/}