Compare commits

...

25 Commits

Author SHA1 Message Date
MaksimZhukov
6712407a7f Merge pull request #39 from nikolai-frolov/helpers-update
Uptake of the latest changes for helpers submodule
2021-10-07 11:08:51 +03:00
Nikolay Frolov
91c89f70d1 Uptake of the latest changes for helpers submodule 2021-10-06 18:10:57 +03:00
MaksimZhukov
13c5817e5c Merge pull request #37 from Yuriy-Kukushkin/main
Move manifest validation pipeline from Azure DevOps
2021-09-15 14:07:34 +03:00
Yuriy-Kukushkin
38f14f667d Updated event 2021-09-15 13:58:37 +03:00
Yuriy-Kukushkin
5735a29e98 Updated submodule 2021-09-15 11:16:57 +03:00
MaksimZhukov
25beb00b9f Merge pull request #38 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 09/10/2021
2021-09-10 10:58:51 +03:00
Service account
260b2b7fbc Update versions-manifest 2021-09-10 07:24:49 +00:00
Yuriy-Kukushkin
187f998b00 Added token 2021-09-09 18:02:16 +03:00
Yuriy-Kukushkin
7dad0a857d Removed event 2021-09-02 10:12:37 +03:00
Yuriy-Kukushkin
bf5a404e5b Changed test data 2021-09-01 22:19:40 +03:00
Yuriy-Kukushkin
307dc6197a Added validate-manifest.yml 2021-09-01 22:05:11 +03:00
MaksimZhukov
868a8c05e8 Merge pull request #36 from nikita-bykov/move-get-go-versions-workflow
Move get-go-versions pipeline from Azure DevOps
2021-08-26 12:31:29 +03:00
Nikita Bykov
df37e8bf8f Update helpers 2021-08-26 12:20:41 +03:00
Nikita Bykov
b895c36713 Update Send Slack notification step to send a custom message 2021-08-25 15:29:09 +03:00
Nikita Bykov
d0f2864c56 Update get-go-versions forkflow 2021-08-20 17:33:06 +03:00
Nikita Bykov
c8892db080 Add the job to check build for failures in get-go-versions.yml 2021-08-19 16:16:05 +03:00
Nikita Bykov
dc914fd71a Move get-go-versions from Azure DevOps 2021-08-17 17:12:11 +03:00
github-actions[bot]
293cbf311d Update versions-manifest (#35)
Co-authored-by: Service account <no-reply@microsoft.com>
2021-08-17 14:12:33 +03:00
MaksimZhukov
090a19ca59 Merge pull request #34 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 08/06/2021
2021-08-06 10:02:30 +03:00
Service account
00a50d6501 Update versions-manifest 2021-08-06 06:06:47 +00:00
github-actions[bot]
562bf9fcb9 Add 1.16.6 & 1.15.14 (#33) 2021-07-13 10:04:49 +03:00
Alena Sviridenko
8ad5091061 Merge pull request #32 from actions/update-versions-manifest-file 2021-06-04 09:25:30 +03:00
Service account
f18d1622a0 Update versions-manifest 2021-06-04 06:05:44 +00:00
Alena Sviridenko
e891add10b Merge pull request #31 from actions/update-versions-manifest-file 2021-05-07 18:28:18 +03:00
Service account
2021212951 Update versions-manifest 2021-05-07 15:14:29 +00:00
4 changed files with 419 additions and 1 deletions

96
.github/workflows/get-go-versions.yml vendored Normal file
View File

@@ -0,0 +1,96 @@
name: Get Go versions
on:
schedule:
- cron: '0 3,15 * * *'
workflow_dispatch:
env:
TOOL_NAME: "Go"
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: 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://golang.org/lib/godoc/images/footer-gopher.jpg" `
-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 go packages" workflow
run:
./helpers/github/run-ci-builds.ps1 -RepositoryFullName "$env:GITHUB_REPOSITORY" `
-AccessToken "${{ secrets.PERSONAL_TOKEN }}" `
-WorkflowFileName "build-go-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://golang.org/lib/godoc/images/footer-gopher.jpg"

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: "Go"
defaults:
run:
shell: pwsh
jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Validate python-versions manifest
run: .\helpers\packages-generation\manifest-validator.ps1 -ManifestUrl https://raw.githubusercontent.com/actions/go-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 go-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://golang.org/lib/godoc/images/footer-gopher.jpg"

Submodule helpers updated: 4b0fa42d99...e71d476320

View File

@@ -1,4 +1,179 @@
[
{
"version": "1.17.1",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.17.1-1220318589",
"files": [
{
"filename": "go-1.17.1-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.17.1-1220318589/go-1.17.1-darwin-x64.tar.gz"
},
{
"filename": "go-1.17.1-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.17.1-1220318589/go-1.17.1-linux-x64.tar.gz"
},
{
"filename": "go-1.17.1-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.17.1-1220318589/go-1.17.1-win32-x64.zip"
}
]
},
{
"version": "1.17.0",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.17.0-1138146562",
"files": [
{
"filename": "go-1.17.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.17.0-1138146562/go-1.17.0-darwin-x64.tar.gz"
},
{
"filename": "go-1.17.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.17.0-1138146562/go-1.17.0-linux-x64.tar.gz"
},
{
"filename": "go-1.17.0-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.17.0-1138146562/go-1.17.0-win32-x64.zip"
}
]
},
{
"version": "1.16.8",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.16.8-1220319069",
"files": [
{
"filename": "go-1.16.8-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.8-1220319069/go-1.16.8-darwin-x64.tar.gz"
},
{
"filename": "go-1.16.8-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.8-1220319069/go-1.16.8-linux-x64.tar.gz"
},
{
"filename": "go-1.16.8-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.8-1220319069/go-1.16.8-win32-x64.zip"
}
]
},
{
"version": "1.16.7",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.16.7-1104053924",
"files": [
{
"filename": "go-1.16.7-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.7-1104053924/go-1.16.7-darwin-x64.tar.gz"
},
{
"filename": "go-1.16.7-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.7-1104053924/go-1.16.7-linux-x64.tar.gz"
},
{
"filename": "go-1.16.7-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.7-1104053924/go-1.16.7-win32-x64.zip"
}
]
},
{
"version": "1.16.6",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.16.6-1025519079",
"files": [
{
"filename": "go-1.16.6-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.6-1025519079/go-1.16.6-darwin-x64.tar.gz"
},
{
"filename": "go-1.16.6-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.6-1025519079/go-1.16.6-linux-x64.tar.gz"
},
{
"filename": "go-1.16.6-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.6-1025519079/go-1.16.6-win32-x64.zip"
}
]
},
{
"version": "1.16.5",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.16.5-905270799",
"files": [
{
"filename": "go-1.16.5-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.5-905270799/go-1.16.5-darwin-x64.tar.gz"
},
{
"filename": "go-1.16.5-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.5-905270799/go-1.16.5-linux-x64.tar.gz"
},
{
"filename": "go-1.16.5-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.5-905270799/go-1.16.5-win32-x64.zip"
}
]
},
{
"version": "1.16.4",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.16.4-820698457",
"files": [
{
"filename": "go-1.16.4-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.4-820698457/go-1.16.4-darwin-x64.tar.gz"
},
{
"filename": "go-1.16.4-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.4-820698457/go-1.16.4-linux-x64.tar.gz"
},
{
"filename": "go-1.16.4-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.16.4-820698457/go-1.16.4-win32-x64.zip"
}
]
},
{
"version": "1.16.3",
"stable": true,
@@ -99,6 +274,106 @@
}
]
},
{
"version": "1.15.15",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.15.15-1104054180",
"files": [
{
"filename": "go-1.15.15-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.15-1104054180/go-1.15.15-darwin-x64.tar.gz"
},
{
"filename": "go-1.15.15-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.15-1104054180/go-1.15.15-linux-x64.tar.gz"
},
{
"filename": "go-1.15.15-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.15-1104054180/go-1.15.15-win32-x64.zip"
}
]
},
{
"version": "1.15.14",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.15.14-1025519483",
"files": [
{
"filename": "go-1.15.14-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.14-1025519483/go-1.15.14-darwin-x64.tar.gz"
},
{
"filename": "go-1.15.14-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.14-1025519483/go-1.15.14-linux-x64.tar.gz"
},
{
"filename": "go-1.15.14-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.14-1025519483/go-1.15.14-win32-x64.zip"
}
]
},
{
"version": "1.15.13",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.15.13-905271220",
"files": [
{
"filename": "go-1.15.13-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.13-905271220/go-1.15.13-darwin-x64.tar.gz"
},
{
"filename": "go-1.15.13-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.13-905271220/go-1.15.13-linux-x64.tar.gz"
},
{
"filename": "go-1.15.13-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.13-905271220/go-1.15.13-win32-x64.zip"
}
]
},
{
"version": "1.15.12",
"stable": true,
"release_url": "https://github.com/actions/go-versions/releases/tag/1.15.12-820698955",
"files": [
{
"filename": "go-1.15.12-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.12-820698955/go-1.15.12-darwin-x64.tar.gz"
},
{
"filename": "go-1.15.12-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.12-820698955/go-1.15.12-linux-x64.tar.gz"
},
{
"filename": "go-1.15.12-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/go-versions/releases/download/1.15.12-820698955/go-1.15.12-win32-x64.zip"
}
]
},
{
"version": "1.15.11",
"stable": true,