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
|
2024-09-26 07:42:07 +00:00
|
|
|
uses: actions/setup-python@v5
|
2021-01-06 10:01:46 +00:00
|
|
|
with:
|
2023-12-11 10:40:38 +00:00
|
|
|
python-version: '3.11'
|
2021-01-06 10:01:46 +00:00
|
|
|
|
|
|
|
- name: Install Python dependencies
|
2024-09-26 07:42:10 +00:00
|
|
|
uses: insightsengineering/pip-action@v2.0.1
|
2021-01-06 10:01:46 +00:00
|
|
|
with:
|
2023-09-26 10:32:11 +00:00
|
|
|
requirements: .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-26 10:32:11 +00:00
|
|
|
uses: DamianReeves/write-file-action@v1.2
|
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
|