-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (38 loc) · 1.51 KB
/
slacknotifier.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
41
42
43
44
45
46
name: Slack Notifier
on:
schedule:
- cron: '45 6 * * 1-5'
workflow_dispatch:
# push:
# branches:
# - master
jobs:
slacknotifier:
runs-on: ubuntu-latest
name: Slack Notifier
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: PrestaShop/PrestaShop
ref: develop
path: prestashop
- name: Composer install
run: composer install --ansi --prefer-dist --no-interaction --no-progress --quiet
- name: Write env file
run: |
echo 'GH_TOKEN='${{ secrets.GH_TOKEN }} > .env && \
echo 'JIRA_TOKEN='${{ secrets.JIRA_TOKEN }} >> .env && \
echo 'SLACK_TOKEN='${{ secrets.SLACK_TOKEN }} >> .env && \
echo 'SLACK_CHANNEL_CORE='${{ secrets.SLACK_CHANNEL_CORE }} >> .env && \
echo 'SLACK_CHANNEL_QA_AUTOMATION='${{ secrets.SLACK_CHANNEL_QA_AUTOMATION }} >> .env && \
echo 'SLACK_CHANNEL_QA_FUNCTIONAL='${{ secrets.SLACK_CHANNEL_QA_FUNCTIONAL }} >> .env && \
echo 'SLACK_CHANNEL_TEAM_AUTOUPGRADE='${{ secrets.SLACK_CHANNEL_TEAM_AUTOUPGRADE }} >> .env && \
echo 'PS_DIR='$GITHUB_WORKSPACE/prestashop >> .env
- name: Execute script
run: php bin/console slack:notifier