summaryrefslogtreecommitdiffstats
path: root/.github/workflows/snap_usns.yml
diff options
context:
space:
mode:
authorGravatar Michał Sawicz <michal@sawicz.net>2021-01-06 11:01:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-07 12:44:36 -0800
commit25d0fb7157d4bf7e4d65303c85cf9875578a362f (patch)
tree6fcabeb01e11674cebcd391718d5857219fe079a /.github/workflows/snap_usns.yml
parent2a850025b26df4f6babd825cac911b6e3d98ffe2 (diff)
downloadsubsurface-25d0fb7157d4bf7e4d65303c85cf9875578a362f.tar.gz
[snap] add daily USN check
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>
Diffstat (limited to '.github/workflows/snap_usns.yml')
-rw-r--r--.github/workflows/snap_usns.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/snap_usns.yml b/.github/workflows/snap_usns.yml
new file mode 100644
index 000000000..ff18f742f
--- /dev/null
+++ b/.github/workflows/snap_usns.yml
@@ -0,0 +1,36 @@
+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