mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
52 lines
1.8 KiB
YAML
52 lines
1.8 KiB
YAML
# This reusable workflow is used by actions/*-versions repositories
|
|
# It is designed to validate the versions-manifest.json file
|
|
# The 'SLACK_CHANNEL_URL' secret must be added to the repository containing the caller workflow
|
|
# in order to publish messages to Slack
|
|
|
|
name: Validate manifest
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
tool-name:
|
|
description: 'Name of the tool for which manifest is validated'
|
|
required: true
|
|
type: string
|
|
image-url:
|
|
description: 'Tool image to be attached to Slack posts'
|
|
required: true
|
|
type: string
|
|
|
|
defaults:
|
|
run:
|
|
shell: pwsh
|
|
|
|
jobs:
|
|
validation:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Validate manifest
|
|
run: .\helpers\packages-generation\manifest-validator.ps1 -ManifestPath '.\versions-manifest.json'
|
|
|
|
check_build:
|
|
name: Check validation for failures
|
|
runs-on: ubuntu-latest
|
|
needs: [validation]
|
|
if: failure()
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
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 ${{ inputs.tool-name }} manifest failed. \nLink to the pipeline: $pipelineUrl"
|
|
.\helpers\get-new-tool-versions\send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
|
|
-ToolName "${{ inputs.tool-name }}" `
|
|
-Text "$message" `
|
|
-ImageUrl "${{ inputs.image-url }}"
|