Merge pull request #474 from DefangLabs/kevin/n8n #196
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@v3 | |
| 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: 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 = script({github, context, core}); | |
| console.log("@@ output", output) |