Skip to content

Commit 7a6f25a

Browse files
committed
Import inputs into env
Instead of raw input from workflow_dispatch, import those inputs into the environment before using.
1 parent d51fa0e commit 7a6f25a

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
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: 10 additions & 5 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
@@ -50,10 +53,11 @@ jobs:
5053
ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }}
5154
ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }}
5255
ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }}
56+
ISSUENUMBER: ${{ github.event.inputs.issue }}
5357
with:
5458
org: ${{ github.repository_owner }}
5559
repo: ${{ github.repository }}
56-
issue: ${{ github.event.inputs.issue }}
60+
issue: $ISSUENUMBER
5761

5862
# This step occurs automatically, passing the issue number from the event
5963
- name: auto-sequester
@@ -66,7 +70,8 @@ jobs:
6670
ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }}
6771
ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }}
6872
ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }}
73+
ISSUENUMBER: ${{ github.event.inputs.issue }}
6974
with:
7075
org: ${{ github.repository_owner }}
7176
repo: ${{ github.repository }}
72-
issue: ${{ github.event.issue.number }}
77+
issue: $ISSUENUMBER

0 commit comments

Comments
 (0)