update #916
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 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "15 22 * * *" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Update | |
run: bundle exec rake api:update | |
- name: Validate | |
run: bundle exec rake api:validate | |
- name: Get current date | |
run: echo "CURRENT_DATE=$(date +%Y/%m/%d)" >> $GITHUB_ENV | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Slack API Ref Buildbot | |
author_email: [email protected] | |
message: "Updated from Slack docs, ${{ env.CURRENT_DATE }}" |