[AdventureAlert] Check for users and roles before adding to the message #448
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: Crowdin - Upload strings | |
on: | |
push: | |
branches: | |
- master | |
- dpy-2.0 | |
jobs: | |
deploy: | |
if: github.repository == 'TrustyJAID/Trusty-cogs' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
curl https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | sudo apt-key add - | |
echo "deb https://artifacts.crowdin.com/repo/deb/ /" | sudo tee -a /etc/apt/sources.list | |
sudo apt-get update -qq | |
sudo apt-get install -y crowdin | |
pip install redgettext==3.4.2 | |
- name: Generate source files | |
run: | | |
python3.8 -m redgettext --command-docstrings --verbose --recursive . | |
- name: Upload source files | |
run: | | |
crowdin upload sources -b ${{ github.ref_name }} | |
env: | |
CROWDIN_API_KEY: ${{ secrets.crowdin_token}} | |
CROWDIN_PROJECT_ID: ${{ secrets.crowdin_identifier }} |