Move get-node-versions pipeline from Azure DevOps #75

Merged
nikita-bykov merged 3 commits from move-get-node-versions into main 2021-08-26 14:43:40 +05:00
Showing only changes of commit 6e415f531b - Show all commits

View File

@@ -50,11 +50,11 @@ jobs:
- name: Send Slack notification - name: Send Slack notification
run: | run: |
$pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID" $pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID"
$message = "The following versions of '${{ env.TOOL_NAME }}' are available to upload: ${{ env.TOOL_VERSIONS }}\nLink to the pipeline: $pipelineUrl"
./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" ` ./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
-ToolName "${{ env.TOOL_NAME }}" ` -ToolName "${{ env.TOOL_NAME }}" `
-ToolVersion "${{ env.TOOL_VERSIONS }}" ` -ImageUrl "https://nodejs.org/static/images/logo-hexagon-card.png" `
-PipelineUrl "$pipelineUrl" ` -Text "$message"
-ImageUrl "https://nodejs.org/static/images/logo-hexagon-card.png"
trigger_builds: trigger_builds:
name: Trigger builds name: Trigger builds
@@ -90,8 +90,8 @@ jobs:
- name: Send Slack notification if build fails - name: Send Slack notification if build fails
run: | run: |
$pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID" $pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID"
$Message = "The build of the '${{ env.TOOL_NAME }}' detection pipeline failed :progress-error:\nLink to the pipeline: $pipelineUrl" $message = "The build of the '${{ env.TOOL_NAME }}' detection pipeline failed :progress-error:\nLink to the pipeline: $pipelineUrl"
./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" ` ./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
-ToolName "${{ env.TOOL_NAME }}" ` -ToolName "${{ env.TOOL_NAME }}" `
-Text "$Message" ` -Text "$message" `
-ImageUrl "https://nodejs.org/static/images/logo-hexagon-card.png" -ImageUrl "https://nodejs.org/static/images/logo-hexagon-card.png"