Skip to content

GitHub disallows secrets in job-level if expressions #10

GitHub disallows secrets in job-level if expressions

GitHub disallows secrets in job-level if expressions #10

---

Check failure on line 1 in .github/workflows/hatchbox-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/hatchbox-deploy.yml

Invalid workflow file

(Line: 19, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.HATCHBOX_DEPLOY_KEY != ''
# Deploy the OSS demo/production Hatchbox app when a release tag is pushed.
# Add HATCHBOX_DEPLOY_KEY to repo secrets (App → Repository tab in Hatchbox.io).
name: Hatchbox Deploy
on:
push:
tags:
- "v*.*.*"
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to Hatchbox
if: secrets.HATCHBOX_DEPLOY_KEY != ''
uses: hatchboxio/github-hatchbox-deploy-action@3bbadafe51e89bbf29fd3932bd84534f4fc9a00c # v2
with:
deploy_key: ${{ secrets.HATCHBOX_DEPLOY_KEY }}
sha: ${{ github.sha }}