aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/snap_usns.yml
blob: ff18f742ffae2bf8d49f1b3f4b98c5612353039a (plain) (blame)
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
28
29
30
31
32
33
34
35
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