Bump next from 14.1.1 to 14.2.21 in /samples/nextjs-blog/app/public #505
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: Check Samples | |
on: | |
pull_request: | |
paths: | |
- 'samples/**' | |
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: Install Defang | |
run: | | |
eval "$(curl -fsSL s.defang.io/install)" | |
- name: Run Checks | |
id: checks | |
run: | | |
eval "$(curl -fsSL s.defang.io/install)" | |
./scripts/check-sample-files.sh > checklist.txt | |
./scripts/check-modified-samples.sh > modified.txt | |
echo "@@ MODIFIED @@" | |
cat modified.txt | |
# TODO: Uncomment the following lines to validate the Compose files | |
# once we figure out how to prevent it from erroring on warnings. | |
# - name: Validate Compose Files with Defang CLI | |
# run: | | |
# eval "$(curl -fsSL s.defang.io/install)" | |
# cat modified.txt | xargs -n1 defang compose config -C > /dev/null | |
- name: Add checklist to PR description | |
uses: actions/github-script@v5 | |
with: | |
script: | | |
const script = require('./scripts/add-checklist-to-pr.js'); | |
try { | |
await script({github, context}); | |
core.info(`Checklist successfully added to PR description`); | |
} catch (error) { | |
core.setFailed(`Script execution failed: ${error.message}`); | |
} | |
- name: Create / Update Template Repo | |
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) |