Upload secrets #17
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: Upload secrets | |
on: | |
workflow_dispatch: | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out repository under $GITHUB_WORKSPACE, so the job can access it | |
- uses: actions/checkout@v2 | |
# Run using Python 3.8 for consistency and aiohttp | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
architecture: 'x64' | |
# Cache dependencies. From: | |
# https://github.com/actions/cache/blob/master/examples.md#python---pip | |
# - uses: actions/cache@v2 | |
# with: | |
# path: ~/.cache/pip | |
# key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-v2 | |
# restore-keys: | | |
# ${{ runner.os }}-pip- | |
# Install dependencies with `pip` | |
- name: Install requirements | |
run: | | |
cd ./status | |
python3 -m pip install --upgrade pip setuptools wheel | |
python3 -m pip install -r requirements.txt | |
# Generate all statistics images | |
- name: Generate images | |
run: | | |
cd ./status | |
python3 --version | |
python3 env_test.py | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
CUSTOM_ACTOR: ${{ secrets.CUSTOM_ACTOR }} | |
EXCLUDED: ${{ secrets.EXCLUDED }} | |
EXCLUDED_LANGS: ${{ secrets.EXCLUDED_LANGS }} | |
EXCLUDED_USERS: ${{ secrets.EXCLUDED_USERS }} | |
INCLUDED_USERS: ${{ secrets.INCLUDED_USERS }} | |
STAT_UPLOAD_URL: ${{ secrets.STAT_UPLOAD_URL }} | |
EXCLUDE_FORKED_REPOS: true | |
EXCLUDE_ARCHIVED_REPOS: true |