Search for topic 'humhub ' #640
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 for topic 'humhub ' | |
on: | |
repository_dispatch: | |
types: check-update | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
execute: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- name: Install dependencies | |
run: | | |
sudo apt-get update --assume-yes | |
sudo apt-get install --assume-yes curl jq | |
mkdir --parents "analysis/" | |
- name: Execute Update | |
id: update | |
run: | | |
curl --silent 'https://api.github.com/search/topics?q=humhub&per_page=100' | jq '.items |= sort_by(.name)' > "analysis/gh-topics__search-humhub.json" | |
- name: Check git status and log | |
run: | | |
git status | |
git diff | |
- name: Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
branch: ${{ github.ref }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
author_email: "[email protected]" | |
author_name: "github-actions[bot]" | |
message: "chore: Update topic search 'humhub'" |