Slack Notifier #1091
This file contains hidden or 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: 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 |