Skip to content

Commit 31a6ec2

Browse files
committed
import options into env
Import the workflow_dispatch options into the environment.
1 parent f321970 commit 31a6ec2

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-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: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ 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 }}"
31+
echo "Reason: $REASON"
32+
echo "Issue number: $ISSUENUMBER"
33+
env:
34+
REASON: ${{ github.event.inputs.reason }}
35+
ISSUENUMBER: ${{ github.event.inputs.issue }}
3336

3437
- name: Azure OpenID Connect
3538
id: azure-oidc-auth
@@ -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.issue.number }}
6974
with:
7075
org: ${{ github.repository_owner }}
7176
repo: ${{ github.repository }}
72-
issue: ${{ github.event.issue.number }}
77+
issue: $ISSUENUMBER

.github/workflows/version-sweep.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
- name: 'Print manual run reason'
3434
if: ${{ github.event_name == 'workflow_dispatch' }}
3535
run: |
36-
echo 'Reason: ${{ github.event.inputs.reason }}'
36+
echo 'Reason: $REASON'
37+
env:
38+
REASON: ${{ github.event.inputs.reason }}
3739
# Start the .NET version sweeper, scan projects/slns for non-LTS (or currrent) versions
3840
- name: .NET version sweeper
3941
id: dotnet-version-sweeper

0 commit comments

Comments
 (0)