Update plugins #371
Workflow file for this run
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: Update plugins | |
on: | |
schedule: | |
- cron: '8 14 * * *' | |
workflow_dispatch: | |
jobs: | |
update-plugins: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
- name: Update plugins.json | |
run: DEBUG=1 ruby scripts/plugins.rb | |
- name: Commit files | |
run: | | |
git config --global user.name "${{ github.actor }}" | |
git config --global user.email "${{ github.actor }}"@users.noreply.github.com | |
git add scripts/plugins.json | |
git commit -m "Update plugins.json" && echo "Need to update" || echo "No need to update" |