Skip to content

Commit

Permalink
Work on authentication for release-notes.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
griff committed Oct 9, 2021
1 parent 748a018 commit fe9ae07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
- name: Release | Setup
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/develop'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Scripts/release-notes.rb
Scripts/release-notes.rb > build/Release/Release-notes.md
Expand Down
2 changes: 1 addition & 1 deletion Scripts/release-notes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

if ENV['GITHUB_TOKEN'] != ''
all_releases = open('https://api.github.com/repos/griff/metaz/releases',
http_basic_authentication: ['griff', ENV['GITHUB_TOKEN']] ) do |f|
"authorization" => "Bearer " + ENV['GITHUB_TOKEN']) do |f|
JSON.parse(f.read, symbolize_names: true)
end
else
Expand Down

0 comments on commit fe9ae07

Please sign in to comment.