💠 Add SDK examples + fix error handling example #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "💠 JadeGate Verify" | |
| on: | |
| pull_request: | |
| paths: | |
| - 'jade_skills/**/*.json' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'jade_skills/**/*.json' | |
| permissions: | |
| contents: write | |
| jobs: | |
| verify: | |
| name: "5-Layer Security Verification" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Verify all skills | |
| run: python .github/scripts/verify_skills.py | |
| auto-sign: | |
| name: "💠 Auto-Sign (on merge to main)" | |
| needs: verify | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Sign unsigned skills | |
| env: | |
| JADE_CI_SIGNING_KEY: ${{ secrets.JADE_CI_SIGNING_KEY }} | |
| run: python .github/scripts/auto_sign.py | |
| - name: Commit signatures | |
| run: | | |
| git config user.name "JadeGate CI" | |
| git config user.email "ci@jadegate.io" | |
| git diff --quiet && exit 0 | |
| git add jade_skills/ | |
| git commit -m "💠 Auto-sign: CI signer applied to new skills" | |
| git push |