Skip to content

Instantly share code, notes, and snippets.

View Gr1N's full-sized avatar
🚴‍♂️

Nikita Grishko Gr1N

🚴‍♂️
View GitHub Profile
@Gr1N
Gr1N / gh-actions-contexts-and-expressions.yml
Created January 12, 2020 12:17
10 things I love about GitHub Actions (contexts and expressions)
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- runs: pip install -U -r requirements.txt
@Gr1N
Gr1N / gh-actions-cache.yml
Created January 12, 2020 12:18
10 things I love about GitHub Actions (cache)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.8
- uses: actions/cache@v1
id: cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
@Gr1N
Gr1N / gh-actions-secrets.yml
Created January 12, 2020 12:22
10 things I love about GitHub Actions (secrets)
steps:
- uses: appleboy/[email protected]
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message: ${{ github.repository }} starred!
@Gr1N
Gr1N / gh-actions-services.yml
Last active January 12, 2020 12:43
10 things I love about GitHub Actions (services)
services:
postgres:
image: postgres:latest
ports:
- 5432/tcp
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with: