Skip to content

Add URL

Add URL #42

Workflow file for this run

name: Add Short URL
on:
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '>=3.6'
- name: Install dependencies
run: pip install pygithub
- name: Create local changes
run: python update_redirects.py
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE: ${{ github.event.issue.number }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}