From hex-pack
Configures GitHub Actions to trigger Hex project refreshes and tests on deploy using API calls and gh CLI for secrets. For CI/CD integration with Hex data apps.
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin hex-packThis skill is limited to using the following tools:
```yaml
Guides Hex API authentication setup with OAuth Bearer tokens: generate tokens, configure .env vars, verify via TypeScript/curl for data projects.
Provides GitHub Actions patterns for CI/CD pipelines, release automation using semantic-release, changesets, goreleaser, and testing strategies with matrix, cache, secrets, artifacts.
Designs multi-stage GitHub Actions CI/CD pipelines with matrix builds, dependency caching, artifacts, secrets, parallel jobs, and conditional logic for linting, testing, building, deployment. Use for new projects, Jenkins/CircleCI migrations, or security scans.
Share bugs, ideas, or general feedback.
name: Deploy & Refresh Data
on:
push:
branches: [main]
jobs:
refresh-hex:
runs-on: ubuntu-latest
steps:
- name: Trigger Hex project refresh
env:
HEX_API_TOKEN: ${{ secrets.HEX_API_TOKEN }}
run: |
curl -X POST \
-H "Authorization: Bearer $HEX_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"inputParams": {"triggered_by": "ci"}, "updateCacheResult": true}' \
https://app.hex.tech/api/v1/project/${{ vars.HEX_PROJECT_ID }}/run
gh secret set HEX_API_TOKEN --body "hex_token_..."
gh variable set HEX_PROJECT_ID --body "project-id"