Compare commits

...

27 Commits

Author SHA1 Message Date
Mikhail Timofeev
2b00037cf2 Merge pull request #84 from actions/update-versions-manifest-file 2021-10-09 12:29:51 +03:00
Service account
03a45f2d48 Update versions-manifest 2021-10-09 07:38:46 +00:00
MaksimZhukov
285c046a12 Merge pull request #83 from nikolai-frolov/helpers-update
Uptake of the latest changes for helpers submodule
2021-10-07 11:09:35 +03:00
Nikolay Frolov
d9cf0e3053 Uptake of the latest changes for helpers submodule 2021-10-06 18:32:12 +03:00
MaksimZhukov
d86ab03024 Merge pull request #82 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 09/28/2021
2021-09-29 00:16:52 +03:00
Service account
ad9cb45c2a Update versions-manifest 2021-09-28 15:50:27 +00:00
MaksimZhukov
aa33d265c4 Merge pull request #81 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 09/23/2021
2021-09-23 13:53:52 +03:00
Service account
58c3d40bb8 Update versions-manifest 2021-09-23 06:10:29 +00:00
MaksimZhukov
577e22bee8 Merge pull request #78 from Yuriy-Kukushkin/yk/add-workflow
Move manifest validation pipeline from Azure DevOps
2021-09-15 14:03:24 +03:00
Yuriy-Kukushkin
2200e9ff30 Updated event 2021-09-15 13:57:21 +03:00
Yuriy-Kukushkin
09f8ea5c48 Updated submodule 2021-09-15 10:54:58 +03:00
MaksimZhukov
d78f09bbe4 Merge pull request #80 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 09/11/2021
2021-09-11 15:44:18 +03:00
Service account
acea7cad3a Update versions-manifest 2021-09-11 12:40:39 +00:00
Yuriy-Kukushkin
3257340283 Added token 2021-09-09 18:00:01 +03:00
MaksimZhukov
833c6da64b Merge pull request #79 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 09/08/2021
2021-09-08 11:41:37 +03:00
Service account
b2560ab6d9 Update versions-manifest 2021-09-08 06:34:29 +00:00
Yuriy-Kukushkin
84b6aaeb97 Added validate-manifest.yml 2021-09-02 12:59:53 +03:00
MaksimZhukov
b195064d9c Merge pull request #77 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 08/31/2021
2021-08-31 18:47:14 +03:00
Service account
a72cfa7a7c Update versions-manifest 2021-08-31 15:46:05 +00:00
MaksimZhukov
63fc200ef6 Merge pull request #76 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 08/26/2021
2021-08-26 12:52:09 +03:00
Service account
ad4714dee5 Update versions-manifest 2021-08-26 09:49:17 +00:00
MaksimZhukov
0287ac915c Merge pull request #75 from nikita-bykov/move-get-node-versions
Move get-node-versions pipeline from Azure DevOps
2021-08-26 12:43:40 +03:00
Nikita Bykov
5c5f144d08 Update helpers 2021-08-26 12:35:40 +03:00
Nikita Bykov
6e415f531b Update Send Slack notification step to send a custom message 2021-08-25 15:32:15 +03:00
Nikita Bykov
5a83490d4f Move get-node-versions pipeline 2021-08-23 14:40:35 +03:00
MaksimZhukov
e5e3b83d13 Merge pull request #74 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 08/18/2021
2021-08-18 09:46:51 +03:00
Service account
9405eaa89a Update versions-manifest 2021-08-18 06:40:05 +00:00
4 changed files with 373 additions and 1 deletions

97
.github/workflows/get-node-versions.yml vendored Normal file
View File

@@ -0,0 +1,97 @@
name: Get Node versions
on:
schedule:
- cron: '0 3,15 * * *'
workflow_dispatch:
env:
TOOL_NAME: "Node"
defaults:
run:
shell: pwsh
jobs:
find_new_versions:
name: Find new versions
runs-on: ubuntu-latest
outputs:
versions_output: ${{ steps.Get_new_versions.outputs.TOOL_VERSIONS }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- id: Get_new_versions
name: Get new versions
run: ./helpers/get-new-tool-versions/get-new-tool-versions.ps1 -ToolName ${{ env.TOOL_NAME }}
check_new_versions:
name: Check new versions
runs-on: ubuntu-latest
needs: find_new_versions
env:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Check Versions
if: success() && env.TOOL_VERSIONS == ''
run: |
Write-Host "No new versions were found"
Import-Module "./helpers/github/github-api.psm1"
$gitHubApi = Get-GitHubApi -RepositoryFullName "$env:GITHUB_REPOSITORY" `
-AccessToken "${{ secrets.PERSONAL_TOKEN }}"
$gitHubApi.CancelWorkflow("$env:GITHUB_RUN_ID")
Start-Sleep -Seconds 60
- name: Send Slack notification
run: |
$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 }}" `
-ToolName "${{ env.TOOL_NAME }}" `
-ImageUrl "https://nodejs.org/static/images/logo-hexagon-card.png" `
-Text "$message"
trigger_builds:
name: Trigger builds
runs-on: ubuntu-latest
needs: [find_new_versions, check_new_versions]
env:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
environment: Get Available Tools Versions - Publishing Approval
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Trigger "Build Node packages" workflow
run:
./helpers/github/run-ci-builds.ps1 -RepositoryFullName "$env:GITHUB_REPOSITORY" `
-AccessToken "${{ secrets.PERSONAL_TOKEN }}" `
-WorkflowFileName "build-node-packages.yml" `
-WorkflowDispatchRef "main" `
-ToolVersions "${{ env.TOOL_VERSIONS }}" `
-PublishReleases "true"
check_build:
name: Check build for failures
runs-on: ubuntu-latest
needs: [find_new_versions, check_new_versions, trigger_builds]
if: failure()
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Send Slack notification if build fails
run: |
$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"
./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"

47
.github/workflows/validate-manifest.yml vendored Normal file
View File

@@ -0,0 +1,47 @@
name: Validate manifest
on:
schedule:
- cron: '0 8,20 * * *'
pull_request:
branches:
- main
paths:
- 'versions-manifest.json'
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 -AccessToken ${{ secrets.GITHUB_TOKEN }}
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"

Submodule helpers updated: 46a901fa87...e71d476320

View File

@@ -1,4 +1,154 @@
[
{
"version": "16.11.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.11.0-1323031162",
"files": [
{
"filename": "node-16.11.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.11.0-1323031162/node-16.11.0-darwin-x64.tar.gz"
},
{
"filename": "node-16.11.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.11.0-1323031162/node-16.11.0-linux-x64.tar.gz"
},
{
"filename": "node-16.11.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.11.0-1323031162/node-16.11.0-win32-x64.7z"
}
]
},
{
"version": "16.10.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.10.0-1264673745",
"files": [
{
"filename": "node-16.10.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.10.0-1264673745/node-16.10.0-darwin-x64.tar.gz"
},
{
"filename": "node-16.10.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.10.0-1264673745/node-16.10.0-linux-x64.tar.gz"
},
{
"filename": "node-16.10.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.10.0-1264673745/node-16.10.0-win32-x64.7z"
}
]
},
{
"version": "16.9.1",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.9.1-1224334450",
"files": [
{
"filename": "node-16.9.1-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.9.1-1224334450/node-16.9.1-darwin-x64.tar.gz"
},
{
"filename": "node-16.9.1-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.9.1-1224334450/node-16.9.1-linux-x64.tar.gz"
},
{
"filename": "node-16.9.1-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.9.1-1224334450/node-16.9.1-win32-x64.7z"
}
]
},
{
"version": "16.9.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.9.0-1212244385",
"files": [
{
"filename": "node-16.9.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.9.0-1212244385/node-16.9.0-darwin-x64.tar.gz"
},
{
"filename": "node-16.9.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.9.0-1212244385/node-16.9.0-linux-x64.tar.gz"
},
{
"filename": "node-16.9.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.9.0-1212244385/node-16.9.0-win32-x64.7z"
}
]
},
{
"version": "16.8.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.8.0-1169919626",
"files": [
{
"filename": "node-16.8.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.8.0-1169919626/node-16.8.0-darwin-x64.tar.gz"
},
{
"filename": "node-16.8.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.8.0-1169919626/node-16.8.0-linux-x64.tar.gz"
},
{
"filename": "node-16.8.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.8.0-1169919626/node-16.8.0-win32-x64.7z"
}
]
},
{
"version": "16.7.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.7.0-1142094056",
"files": [
{
"filename": "node-16.7.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.7.0-1142094056/node-16.7.0-darwin-x64.tar.gz"
},
{
"filename": "node-16.7.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.7.0-1142094056/node-16.7.0-linux-x64.tar.gz"
},
{
"filename": "node-16.7.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.7.0-1142094056/node-16.7.0-win32-x64.7z"
}
]
},
{
"version": "16.6.2",
"stable": true,
@@ -274,6 +424,58 @@
}
]
},
{
"version": "14.18.0",
"stable": true,
"lts": "Fermium",
"release_url": "https://github.com/actions/node-versions/releases/tag/14.18.0-1283317191",
"files": [
{
"filename": "node-14.18.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/14.18.0-1283317191/node-14.18.0-darwin-x64.tar.gz"
},
{
"filename": "node-14.18.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/14.18.0-1283317191/node-14.18.0-linux-x64.tar.gz"
},
{
"filename": "node-14.18.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/14.18.0-1283317191/node-14.18.0-win32-x64.7z"
}
]
},
{
"version": "14.17.6",
"stable": true,
"lts": "Fermium",
"release_url": "https://github.com/actions/node-versions/releases/tag/14.17.6-1186790880",
"files": [
{
"filename": "node-14.17.6-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/14.17.6-1186790880/node-14.17.6-darwin-x64.tar.gz"
},
{
"filename": "node-14.17.6-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/14.17.6-1186790880/node-14.17.6-linux-x64.tar.gz"
},
{
"filename": "node-14.17.6-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/14.17.6-1186790880/node-14.17.6-win32-x64.7z"
}
]
},
{
"version": "14.17.5",
"stable": true,
@@ -1130,6 +1332,32 @@
}
]
},
{
"version": "12.22.6",
"stable": true,
"lts": "Erbium",
"release_url": "https://github.com/actions/node-versions/releases/tag/12.22.6-1186707475",
"files": [
{
"filename": "node-12.22.6-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/12.22.6-1186707475/node-12.22.6-darwin-x64.tar.gz"
},
{
"filename": "node-12.22.6-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/12.22.6-1186707475/node-12.22.6-linux-x64.tar.gz"
},
{
"filename": "node-12.22.6-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/12.22.6-1186707475/node-12.22.6-win32-x64.7z"
}
]
},
{
"version": "12.22.5",
"stable": true,