Sync Launchpad issues to GitHub #1309
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: Sync Launchpad issues to GitHub | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/track-lp-issues.yaml' | |
- '.github/lpbugtracker.py' | |
schedule: | |
- cron: '0 20 * * *' | |
jobs: | |
add-lp-issues: | |
name: Sync Launchpad issues to GitHub bug tracker | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout code | |
- uses: actions/[email protected] | |
- name: Install Python 3 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install launchpadlib | |
- name: Install hub | |
run: | | |
sudo apt-get update | |
sudo apt-get install hub | |
- name: Mirror GitHub bugs from Launchpad | |
id: getlpbugs | |
run: | | |
python .github/lpbugtracker.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |