Search ossbymaif on social networks #16620
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |