Skip to content

Update lastUpdated #254

Update lastUpdated

Update lastUpdated #254

name: Update lastUpdated
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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 'developer@sketch.com'
git add plugins.json
git commit -am 'content: Update lastUpdated' --allow-empty
git push