mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
25d0fb7157
This workflow will download the current snaps published in the `candidate` channel for all architectures and check them for packages with published Ubuntu Security Notices. If it finds one, it will trigger a build of the snap recipe: https://code.launchpad.net/~subsurface/+snap/subsurface-stable This will rebuild the snap with patched packages and publish it to the `candidate` channel. Signed-off-by: Michał Sawicz <michal@sawicz.net>
36 lines
800 B
YAML
36 lines
800 B
YAML
name: SnapUSNs
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 5 * * *'
|
|
|
|
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: |
|
|
sudo snap install review-tools
|
|
|
|
- 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
|