| 1 |
name: Push new tag update to stable branch |
| 2 |
|
| 3 |
on: |
| 4 |
schedule: |
| 5 |
- cron: '9 7 * * *' |
| 6 |
workflow_dispatch: |
| 7 |
inputs: |
| 8 |
workflow_choice: |
| 9 |
description: "Choose YAML to update" |
| 10 |
required: true |
| 11 |
default: "both" |
| 12 |
type: choice |
| 13 |
options: |
| 14 |
- snapcraft |
| 15 |
- rockcraft |
| 16 |
- both |
| 17 |
|
| 18 |
jobs: |
| 19 |
update-yamls: |
| 20 |
runs-on: ubuntu-latest |
| 21 |
steps: |
| 22 |
- name: Checkout this repo |
| 23 |
uses: actions/checkout@v3 |
| 24 |
|
| 25 |
- name: Run desktop-snaps action (Snapcraft) |
| 26 |
if: ${{ github.event_name == 'schedule' || github.event.inputs.workflow_choice == 'snapcraft' || github.event.inputs.workflow_choice == 'both' }} |
| 27 |
uses: ubuntu/desktop-snaps@stable |
| 28 |
with: |
| 29 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 30 |
repo: ${{ github.repository }} |
| 31 |
yaml-path: 'snap/snapcraft.yaml' |
| 32 |
|
| 33 |
- name: Run desktop-snaps action (Rockcraft) |
| 34 |
if: ${{ github.event_name == 'schedule' || github.event.inputs.workflow_choice == 'rockcraft' || github.event.inputs.workflow_choice == 'both' }} |
| 35 |
uses: ubuntu/desktop-snaps@stable |
| 36 |
with: |
| 37 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 38 |
repo: ${{ github.repository }} |
| 39 |
yaml-path: 'rock/rockcraft.yaml' |
| 40 |
|