forked from Identosphere/identity-blogcatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.23 KB
/
companies.yml
File metadata and controls
39 lines (35 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Build Companies
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '50 */5 * * *'
push:
paths:
- 'companies.ini'
- .github/workflows/companies.yml
jobs:
updatefeeds:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install dependencies
run: gem install pluto && gem install nokogiri && gem install sanitize
- name: build companies feed
run: pluto b companies.ini -t companies -o docs/companies
- name: Deploy Files
run: |
git remote add gh-token "https://github.com/identosphere/identity-blogcatcher.git"
git config user.name "github-actions[bot]" # I use the GitHub Actions bot here.
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git pull
git add .
git commit -a -m "update companies"
git push gh-token master