Merge pull request #646 from DefangLabs/revert-645-jordan/mastra-exte… #252
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: Publish Sample Template | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| publish_samples: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # Fetch two to see changes in current commit | |
| fetch-depth: 2 | |
| - name: Run Checks | |
| id: checks | |
| run: | | |
| ./scripts/check-modified-samples.sh > modified.txt | |
| echo "@@ MODIFIED @@" | |
| cat modified.txt | |
| - name: Install script dependencies | |
| run: npm ci | |
| working-directory: scripts | |
| - name: Create / Update Template Repo Main | |
| uses: actions/github-script@v7 | |
| env: | |
| PUSH_TOKEN: ${{ secrets.TEMPLATES_MANAGER_TOKEN }} | |
| with: | |
| github-token: ${{ secrets.TEMPLATES_MANAGER_TOKEN }} | |
| script: | | |
| const script = require('./scripts/template-manager.js') | |
| const output = await script({github, context, core}); | |
| console.log("@@ output", output) |