2021-01-06 10:01:46 +00:00
|
|
|
name: SnapUSNs
|
|
|
|
|
|
|
|
on:
|
2023-02-07 11:53:03 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 5 * * *'
|
2021-01-06 10:01:46 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
CheckUSNs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Install Python dependencies
|
|
|
|
uses: BSFishy/pip-action@v1
|
|
|
|
with:
|
|
|
|
requirements: .github/workflows/scripts/requirements.txt
|
|
|
|
|
|
|
|
- name: Install Snap dependencies
|
|
|
|
run: |
|
2023-02-07 11:53:03 +00:00
|
|
|
sudo snap install review-tools --edge
|
2021-01-06 10:01:46 +00:00
|
|
|
|
|
|
|
- name: Set up Launchpad credentials
|
|
|
|
uses: DamianReeves/write-file-action@v1.0
|
|
|
|
with:
|
|
|
|
path: lp_credentials
|
|
|
|
contents: ${{ secrets.LAUNCHPAD_CREDENTIALS }}
|
|
|
|
|
|
|
|
- name: Check for USNs
|
|
|
|
run: .github/workflows/scripts/check_usns.py lp_credentials
|