mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-05 00:21:29 +00:00
b84e06ae42
Fix the 'Snap USNs' action. According to https://bugs.launchpad.net/lazr.restfulclient/+bug/2041407 the an incompatibility is introduced by the move from python 3.11 to 3.12, and a workaround is to pin the version to 3.11. Signed-off-by: Michael Keller <github@ike.ch>
37 lines
844 B
YAML
37 lines
844 B
YAML
name: SnapUSNs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 5 * * *'
|
|
|
|
jobs:
|
|
CheckUSNs:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install Python dependencies
|
|
uses: insightsengineering/pip-action@v2.0.0
|
|
with:
|
|
requirements: .github/workflows/scripts/requirements.txt
|
|
|
|
- name: Install Snap dependencies
|
|
run: |
|
|
sudo snap install review-tools --edge
|
|
|
|
- name: Set up Launchpad credentials
|
|
uses: DamianReeves/write-file-action@v1.2
|
|
with:
|
|
path: lp_credentials
|
|
contents: ${{ secrets.LAUNCHPAD_CREDENTIALS }}
|
|
|
|
- name: Check for USNs
|
|
run: .github/workflows/scripts/check_usns.py lp_credentials
|