Skip to content

Added NOLA land trust shortlink. #64

Added NOLA land trust shortlink.

Added NOLA land trust shortlink. #64

name: Update Shortlinks
on:
push:
branches: [main]
paths:
- .github/workflows/*shortlinks*.yml
- shortlinks.csv
repository_dispatch:
types: [force-update-shortlinks]
workflow_dispatch:
jobs:
runner:
runs-on: ubuntu-20.04
env:
REPO_SLUG: g0v-network/link.g0v.network
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
id: setup-python
with:
python-version: '3.6'
- uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
- run: pip install pipenv
- run: pipenv sync --dev
- env:
REBRANDLY_API_KEY: ${{ secrets.REBRANDLY_API_KEY }}
run: |
pipenv run spreadsheet2shortlinks --yes --verbose \
--spreadsheet "https://raw.githubusercontent.com/${REPO_SLUG}/${GITHUB_SHA}/shortlinks.csv" \
--domain-name "link.g0v.network" \
--rebrandly-api-key "$REBRANDLY_API_KEY"