Skip to content

Commit

Permalink
chore: use ARGV to retrieve credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanomunarini committed Oct 10, 2023
1 parent 34e30b7 commit 13aa735
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/crawler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ env:
jobs:
crawl:
uses: relaton/support/.github/workflows/crawler.yml@master
secrets:
args: ${{ secrets.IETF_BIB_BOT_PAT }}
with:
override-files: |
https://raw.githubusercontent.com/ietf-tools/bibxml-service/main/Gemfile=Gemfileg
https://raw.githubusercontent.com/ietf-tools/bibxml-service/main/Gemfile=Gemfile
args: ${{ github.event.inputs.args }}
commit-indexes: false
secrets: inherit
# secrets: inherit

5 changes: 2 additions & 3 deletions crawler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
t1 = Time.now
puts "Started at: #{t1}"

token = ENV["token"]
puts token

token = ARGV.shift
system("git clone https://oauth2:#{token}@github.com/ietf-ribose/ieee-rawbib.git ieee-rawbib")
FileUtils.rm_rf("data")

RelatonIeee::DataFetcher.fetch
FileUtils.rm_rf("ieee-rawbib")

Expand Down

0 comments on commit 13aa735

Please sign in to comment.