Skip to content

Update dependency @opentelemetry/semantic-conventions to v1.24.1 #55

Update dependency @opentelemetry/semantic-conventions to v1.24.1

Update dependency @opentelemetry/semantic-conventions to v1.24.1 #55

name: Checks - Recipe ids
on:
pull_request:
paths:
- "**/recipefile.json"
jobs:
gen-matrix:
name: Validate unique recipe ids
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: diff
uses: tj-actions/changed-files@v44
with:
json: true
dir_names_exclude_current_dir: true
- name: Get duplicate recipe ids
uses: actions/github-script@v7
id: generator
with:
script: |
const script = require('.github/scripts/unique-recipe-ids.js');
return script('${{ steps.diff.outputs.all_changed_files }}', '${{ github.workspace }}');
- name: Validate
uses: actions/github-script@v7
with:
script: |
const errors = JSON.parse('${{ steps.generator.outputs.result }}');
if (errors.length === 0) {
return;
}
console.log("#################### Recipes with duplicated Ids: ####################")
for (const msg of errors) {
console.log(`- ${msg}`);
}
console.log("#################### Recipes with duplicated Ids: ####################")
core.setFailed("Encountered duplicated recipe ids. See the above logs for more information.");