Update lastUpdated #234
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: | |
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 |