-
Notifications
You must be signed in to change notification settings - Fork 305
27 lines (22 loc) · 856 Bytes
/
launchpad.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SPDX-FileCopyrightText: 2014-2022 Megan Conkle <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: launchpad-ppa-build
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 */3 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Prerequisites
run: sudo apt-get update && sudo apt-get install w3m
- name: Fetch build page
run: w3m -dump "https://launchpad.net/~wereturtle/+archive/ubuntu/staging/+builds?build_text=&build_state=all" > builds.txt
- name: Get build status
run: |
export BUILD_STATUS=$(grep -E "^\[\w+\]" builds.txt | head -1 | awk -F ' ' '{ print $1 }')
echo "Build status = $BUILD_STATUS"
- name: Verify build status
run: if [[ "$BUILD_STATUS" == \[FAIL*\] ]]; then exit 1; fi