Skip to content

Commit ad7edae

Browse files
committed
Add separate print-env job to display environment parameter
1 parent 16ada7f commit ad7edae

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/simple_test.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ env:
2121

2222

2323
jobs:
24+
print-env:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Print environment parameter
28+
run: |
29+
echo "Environment parameter: ${{ github.event.inputs.environment }}"
30+
echo "Workflow triggered with environment: ${{ github.event.inputs.environment || 'default' }}"
31+
2432
test:
2533
runs-on: ubuntu-latest
34+
needs: print-env
2635
steps:
2736
- uses: actions/checkout@v4
28-
- name: Print environment parameter
29-
run: echo "Environment parameter: ${{ inputs.environment }}"
3037
- name: Setup Python
3138
uses: actions/setup-python@v4
3239
with:

0 commit comments

Comments
 (0)