mirror of
https://github.com/actions/node-versions.git
synced 2025-01-11 02:25:19 +00:00
Added validate-manifest.yml
This commit is contained in:
parent
63fc200ef6
commit
84b6aaeb97
45
.github/workflows/validate-manifest.yml
vendored
Normal file
45
.github/workflows/validate-manifest.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
name: Validate manifest
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 8,20 * * *'
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
env:
|
||||||
|
TOOL_NAME: "Node"
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validation:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Validate node-versions manifest
|
||||||
|
run: .\helpers\packages-generation\manifest-validator.ps1 -ManifestUrl https://raw.githubusercontent.com/actions/node-versions/main/versions-manifest.json
|
||||||
|
|
||||||
|
check_build:
|
||||||
|
name: Check validation for failures
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [validation]
|
||||||
|
if: failure()
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Send Slack notification if validation fails
|
||||||
|
run: |
|
||||||
|
$pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID"
|
||||||
|
$message = "The validation of node-versions manifest failed. \nLink to the pipeline: $pipelineUrl"
|
||||||
|
.\helpers\get-new-tool-versions\send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
|
||||||
|
-ToolName "${{ env.TOOL_NAME }}" `
|
||||||
|
-Text "$message" `
|
||||||
|
-ImageUrl "https://nodejs.org/static/images/logo-hexagon-card.png"
|
Loading…
Reference in New Issue
Block a user