Update dependency @opentelemetry/semantic-conventions to v1.24.1 #55
Workflow file for this run
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: 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."); |