File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -234,15 +234,19 @@ jobs:
234234 runs-on : ubuntu-22.04
235235 concurrency : builds-hex-pm
236236 environment : release
237- # Only run if HEX_AWS_REGION is set (no failing job in forks)
238- if : " ${{ vars.HEX_AWS_REGION }}"
239237 env :
240238 AWS_ACCESS_KEY_ID : ${{ secrets.HEX_AWS_ACCESS_KEY_ID }}
241239 AWS_SECRET_ACCESS_KEY : ${{ secrets.HEX_AWS_SECRET_ACCESS_KEY }}
242240 AWS_REGION : ${{ vars.HEX_AWS_REGION }}
243241 AWS_S3_BUCKET : ${{ vars.HEX_AWS_S3_BUCKET }}
244242 OTP_GENERIC_VERSION : " 25"
245243 steps :
244+ - name : " Check if variables are set up"
245+ if : " ${{ ! vars.HEX_AWS_REGION }}"
246+ run : |
247+ echo "Required variables for uploading to hex.pm are not set up, skipping..."
248+ exit 1
249+
246250 - uses : actions/download-artifact@v4
247251 with :
248252 pattern : " {sign-*-elixir-otp-*,Docs}"
You can’t perform that action at this time.
0 commit comments