Update lastUpdated #100
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 lastUpdated | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
workflow_dispatch: | |
# push: | |
# branches: | |
# - master | |
# paths: | |
# - plugins.json | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 3.1 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1' | |
- name: Update lastUpdated | |
run: | | |
gem install octokit | |
rake lastUpdated | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: push | |
run: | | |
git config --global user.name 'Sketch Developer' | |
git config --global user.email '[email protected]' | |
git add plugins.json | |
git commit -am 'Update lastUpdated' --allow-empty | |
git push |