Skip to content

Commit a622a8e

Browse files
maennchenjosevalim
authored andcommitted
Correct builds.hex.pm Publish Condition in CI (#14772)
1 parent 66bb6da commit a622a8e

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
@@ -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}"

0 commit comments

Comments
 (0)