Skip to content

Commit 2e7ee76

Browse files
authored
Correct builds.hex.pm Publish Condition in CI (#14772)
1 parent 6fccf34 commit 2e7ee76

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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}"

0 commit comments

Comments
 (0)