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 @@ -304,15 +304,19 @@ jobs:
304304 runs-on : ubuntu-22.04
305305 concurrency : builds-hex-pm
306306 environment : release
307- # Only run if HEX_AWS_REGION is set (no failing job in forks)
308- if : " ${{ vars.HEX_AWS_REGION }}"
309307 env :
310308 AWS_ACCESS_KEY_ID : ${{ secrets.HEX_AWS_ACCESS_KEY_ID }}
311309 AWS_SECRET_ACCESS_KEY : ${{ secrets.HEX_AWS_SECRET_ACCESS_KEY }}
312310 AWS_REGION : ${{ vars.HEX_AWS_REGION }}
313311 AWS_S3_BUCKET : ${{ vars.HEX_AWS_S3_BUCKET }}
314312 OTP_GENERIC_VERSION : " 25"
315313 steps :
314+ - name : " Check if variables are set up"
315+ if : " ${{ ! vars.HEX_AWS_REGION }}"
316+ run : |
317+ echo "Required variables for uploading to hex.pm are not set up, skipping..."
318+ exit 1
319+
316320 - uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
317321 with :
318322 pattern : " {sign-*-elixir-otp-*,Docs}"
You can’t perform that action at this time.
0 commit comments