Skip to content

Commit 10d47ea

Browse files
authored
put inputs into env (#50071)
* put inputs into env Instead of raw input from workflow_dispatch, import those inputs into the environment before using. * Apply suggestions from code review * Apply suggestions from code review
1 parent c4a7191 commit 10d47ea

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/dependabot-bot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ jobs:
4040
- name: "Print manual run reason"
4141
if: ${{ github.event_name == 'workflow_dispatch' }}
4242
run: |
43-
echo "Reason: ${{ github.event.inputs.reason }}"
43+
echo "Reason: $REASON"
44+
env:
45+
REASON: ${{ github.event.inputs.reason }}
4446
# Run the .NET dependabot-bot tool
4547
- name: dependabot-bot
4648
id: dependabot-bot

.github/workflows/quest-bulk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- name: "Print manual bulk import run reason"
3636
if: ${{ github.event_name == 'workflow_dispatch' }}
3737
run: |
38-
echo "Reason: ${{ github.event.inputs.reason }}"
38+
echo "Reason: $REASON"
39+
env:
40+
REASON: ${{ github.event.inputs.reason }}
3941

4042
- name: Azure OpenID Connect
4143
id: azure-oidc-auth

.github/workflows/quest.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ jobs:
3636
- name: "Print manual run reason"
3737
if: ${{ github.event_name == 'workflow_dispatch' }}
3838
run: |
39-
echo "Reason: ${{ github.event.inputs.reason }}"
40-
echo "Issue number: ${{ github.event.inputs.issue }}"
39+
echo "Reason: $REASON"
40+
echo "Issue number: $ISSUENUMBER"
41+
env:
42+
REASON: ${{ github.event.inputs.reason }}
43+
ISSUENUMBER: ${{ github.event.inputs.issue }}
4144

4245
- name: Azure OpenID Connect
4346
id: azure-oidc-auth

0 commit comments

Comments
 (0)