forked from Identosphere/identity-blogcatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.24 KB
/
organizations.yml
File metadata and controls
39 lines (35 loc) · 1.24 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 Organizations
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '05 */5 * * *'
push:
paths:
- 'organizations.ini'
- .github/workflows/organizations.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 orgsfeed
run: pluto b organizations.ini -t orgsfeed -o docs/organizations
- 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 orgsfeed"
git push gh-token master