Skip to content

Commit 95d4856

Browse files
authored
Import inputs into env (#36380)
* Import inputs into env Instead of raw input from workflow_dispatch, import those inputs into the environment before using. * Apply suggestions from code review
1 parent d51fa0e commit 95d4856

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/quest-bulk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
- name: "Print manual bulk import run reason"
2828
if: ${{ github.event_name == 'workflow_dispatch' }}
2929
run: |
30-
echo "Reason: ${{ github.event.inputs.reason }}"
30+
echo "Reason: $REASON"
31+
env:
32+
REASON: ${{ github.event.inputs.reason }}
3133

3234
- name: Azure OpenID Connect
3335
id: azure-oidc-auth

.github/workflows/quest.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ jobs:
2828
- name: "Print manual run reason"
2929
if: ${{ github.event_name == 'workflow_dispatch' }}
3030
run: |
31-
echo "Reason: ${{ github.event.inputs.reason }}"
32-
echo "Issue number: ${{ github.event.inputs.issue }}"
33-
31+
echo "Reason: $REASON"
32+
echo "Issue number: $ISSUENUMBER"
33+
env:
34+
REASON: ${{ github.event.inputs.reason }}
35+
ISSUENUMBER: ${{ github.event.inputs.issue }}
36+
I
3437
- name: Azure OpenID Connect
3538
id: azure-oidc-auth
3639
uses: dotnet/docs-tools/.github/actions/oidc-auth-flow@main

0 commit comments

Comments
 (0)