Skip to content

Merge pull request #208 from DefangLabs/linda-html-css-js #79

Merge pull request #208 from DefangLabs/linda-html-css-js

Merge pull request #208 from DefangLabs/linda-html-css-js #79

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)