@@ -102,23 +102,27 @@ jobs:
102102 - name : Install Superset Showtime
103103 if : steps.auth.outputs.authorized == 'true'
104104 run : |
105- echo "::notice::Maintainer ${{ github.actor }} triggered deploy for PR ${{ github.event.pull_request.number || github.event.inputs.pr_number } }"
105+ echo "::notice::Maintainer ${{ github.actor }} triggered deploy for PR ${PULL_REQUEST_NUMBER }"
106106 pip install --upgrade superset-showtime
107107 showtime version
108108
109+ env :
110+ PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number || github.event.inputs.pr_number }}
109111 - name : Check what actions are needed
110112 if : steps.auth.outputs.authorized == 'true'
111113 id : check
112114 env :
113115 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
114116 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
115117 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
118+ INPUT_PR_NUMBER : ${{ github.event.inputs.pr_number }}
119+ INPUT_SHA : ${{ github.event.inputs.sha }}
116120 run : |
117121 # Bulletproof PR number extraction
118122 if [[ -n "${{ github.event.pull_request.number }}" ]]; then
119123 PR_NUM="${{ github.event.pull_request.number }}"
120- elif [[ -n "${{ github.event.inputs.pr_number } }" ]]; then
121- PR_NUM="${{ github.event.inputs.pr_number } }"
124+ elif [[ -n "${INPUT_PR_NUMBER }" ]]; then
125+ PR_NUM="${INPUT_PR_NUMBER }"
122126 else
123127 echo "❌ No PR number found in event or inputs"
124128 exit 1
@@ -127,8 +131,8 @@ jobs:
127131 echo "Using PR number: $PR_NUM"
128132
129133 # Run sync check-only with optional SHA override
130- if [[ -n "${{ github.event.inputs.sha } }" ]]; then
131- OUTPUT=$(python -m showtime sync $PR_NUM --check-only --sha "${{ github.event.inputs.sha } }")
134+ if [[ -n "${INPUT_SHA }" ]]; then
135+ OUTPUT=$(python -m showtime sync $PR_NUM --check-only --sha "${INPUT_SHA }")
132136 else
133137 OUTPUT=$(python -m showtime sync $PR_NUM --check-only)
134138 fi
0 commit comments