We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42c7e3 commit f75371bCopy full SHA for f75371b
.github/workflows/build.yml
@@ -89,6 +89,8 @@ jobs:
89
steps:
90
- uses: actions/checkout@v3
91
- run: rake ci:pin_build_manifest
92
+ env:
93
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94
- uses: actions/upload-artifact@v3
95
with:
96
name: build-manifest
tasks/ci.rake
@@ -3,8 +3,8 @@ def latest_build_sources
3
.map do |name, src|
4
case src[:type]
5
when "github"
6
- url = "https://api.github.com/repos/#{src[:repo]}/commits/#{src[:rev]}"
7
- revision = OpenURI.open_uri(url) { |f| JSON.load(f.read) }
+ url = "repos/#{src[:repo]}/commits/#{src[:rev]}"
+ revision = JSON.parse(`gh api #{url}`)
8
[name, revision["sha"]]
9
else
10
raise "#{src[:type]} is not supported to pin source revision"
0 commit comments