-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (42 loc) · 1.21 KB
/
social.yml
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
40
41
42
43
44
name: Search ossbymaif on social networks
on:
workflow_dispatch:
push:
paths:
- "scripts/**"
branches:
- master
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: install dependencies
run: cd scripts; npm ci
- name: Search contributors on github
id: github
run: node ./scripts/contributors.js
env:
GITHUB_TOKEN: ${{ secrets.FIFI_TOKEN }}
- name: Load last releases highlights
id: releases
run: node ./scripts/releases.js
env:
GITHUB_TOKEN: ${{ secrets.FIFI_TOKEN }}
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "ossbymaif-github-actions"
git add --all
if [ -n "$(git status --porcelain)" ]; then
git commit -am "Update social network data"
fi
- name: Push documentation
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}