diff --git a/.github/workflows/crawler.yml b/.github/workflows/crawler.yml index d91fee009c1..b87efbdb7df 100644 --- a/.github/workflows/crawler.yml +++ b/.github/workflows/crawler.yml @@ -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 diff --git a/crawler.rb b/crawler.rb index 27801aa3fc6..10d79462d9c 100644 --- a/crawler.rb +++ b/crawler.rb @@ -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")