-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (39 loc) · 942 Bytes
/
Slack.yml
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
30
31
32
33
34
35
36
37
38
39
40
name: Slack refresh
on:
workflow_dispatch:
schedule:
- cron: '0 19 * * 5'
push:
branches:
- main
paths:
- 'weblate/Slack/Weblate_Slack.R'
- '.github/workflows/Slack.yml'
jobs:
Running_R_scripts:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: weblate/Slack
steps:
- name: checkout_repo
uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::dplyr
any::slackr
any::httr
any::jsonlite
any::knitr
any::stringr
any::readr
- name: Run R scripts
env:
WEBLATE_TOKEN: ${{ secrets.WEBLATE_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
run: |
Rscript "Weblate_Slack.R"