-
-
Notifications
You must be signed in to change notification settings - Fork 14
29 lines (27 loc) · 766 Bytes
/
update.yml
File metadata and controls
29 lines (27 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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: buildbot@slack-api-ref.com
message: "Updated from Slack docs, ${{ env.CURRENT_DATE }}"