-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.15 KB
/
repository-updater.yaml
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
---
name: Repository Update
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
inputs:
ADDON:
description: Addon name
required: true
default: laskakit-data-feeder
type: string
FORCE:
description: Whether to update all add-ons
required: false
default: false
type: boolean
repository_dispatch:
types: ["update"]
jobs:
updater:
name: Running updater for ${{ github.event.client_payload.addon || github.event.inputs.ADDON }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Running updater for ${{ github.event.client_payload.addon || github.event.inputs.ADDON }}
run: echo ${{ github.event.client_payload.addon || github.event.inputs.ADDON }}
- name: Running updater for ${{ github.event.client_payload.addon || github.event.inputs.ADDON }}
uses: ./.github/actions/repository-updater
with:
TOKEN: ${{ secrets.UPDATER_TOKEN }}
ADDON: ${{ github.event.client_payload.addon || github.event.inputs.ADDON }}
FORCE: ${{ github.event.inputs.FORCE }}