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:
|
2023-09-25 10:56:05 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2021-01-06 10:01:46 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
2023-09-25 10:56:05 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-01-06 10:01:46 +00:00
|
|
|
|
|
|
|
- name: Set up Python
|
2023-09-25 10:56:05 +00:00
|
|
|
uses: actions/setup-python@v4
|
2021-01-06 10:01:46 +00:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Install Python dependencies
|
2023-09-25 10:56:05 +00:00
|
|
|
uses: brettcannon/pip-secure-install@v1
|
2021-01-06 10:01:46 +00:00
|
|
|
with:
|
2023-09-25 10:56:05 +00:00
|
|
|
requirements-file: .github/workflows/scripts/requirements.txt
|
2021-01-06 10:01:46 +00:00
|
|
|
|
|
|
|
- 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
|
2023-09-25 10:56:05 +00:00
|
|
|
uses: DamianReeves/write-file-action@v1
|
2021-01-06 10:01:46 +00:00
|
|
|
with:
|
|
|
|
path: lp_credentials
|
|
|
|
contents: ${{ secrets.LAUNCHPAD_CREDENTIALS }}
|
|
|
|
|
|
|
|
- name: Check for USNs
|
|
|
|
run: .github/workflows/scripts/check_usns.py lp_credentials
|