File: auto-update.yml

package info (click to toggle)
ipp-usb 0.9.31-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 828 kB
  • sloc: sh: 68; makefile: 42
file content (40 lines) | stat: -rw-r--r-- 1,251 bytes parent folder | download
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
37
38
39
40
name: Push new tag update to stable branch

on:
  schedule:
    - cron: '9 7 * * *'
  workflow_dispatch:
    inputs:
      workflow_choice:
        description: "Choose YAML to update"
        required: true
        default: "both"
        type: choice
        options:
          - snapcraft
          - rockcraft
          - both

jobs:
  update-yamls:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout this repo
        uses: actions/checkout@v3

      - name: Run desktop-snaps action (Snapcraft)
        if: ${{ github.event_name == 'schedule' || github.event.inputs.workflow_choice == 'snapcraft' || github.event.inputs.workflow_choice == 'both' }}
        uses: ubuntu/desktop-snaps@stable
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          repo: ${{ github.repository }}
          yaml-path: 'snap/snapcraft.yaml'

      - name: Run desktop-snaps action (Rockcraft)
        if: ${{ github.event_name == 'schedule' || github.event.inputs.workflow_choice == 'rockcraft' || github.event.inputs.workflow_choice == 'both' }}
        uses: ubuntu/desktop-snaps@stable
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          repo: ${{ github.repository }}
          yaml-path: 'rock/rockcraft.yaml'