Merge pull request #208 from DefangLabs/linda-html-css-js #79
This file contains 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: | |
check_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) |