Skip to content

Update lastUpdated #103

Update lastUpdated

Update lastUpdated #103

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