-
Notifications
You must be signed in to change notification settings - Fork 31
53 lines (51 loc) · 1.98 KB
/
updatecli_release.yaml
File metadata and controls
53 lines (51 loc) · 1.98 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Updatecli - Release
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# Run at 12:00 every Thursday
- cron: "0 12 * * 4"
repository_dispatch:
types:
- "updatecli-release"
permissions: {}
jobs:
updatecli:
name: "Updatecli - ${{ matrix.target_name }}"
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
- target_name: "release pipelines"
apply_args: "--file updatecli-compose-release.yaml"
- target_name: "updatecli release"
apply_args: "--labels=release:updatecli"
steps:
- name: "Checkout"
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
persist-credentials: false
- name: "Setup updatecli"
uses: "updatecli/updatecli-action@e71be7554f3f940bc439cf720b3e4e379823c562" # v3.2.0
with:
version: "v0.117.1"
# releasepost is required by the Updatecli
# * policy ghcr.io/updatecli/policies/releasepost/releasepost
- name: "Install Releasepost"
uses: "updatecli/releasepost-action@864390bddae97db06ee881ab4a08d159b4464643" # v0.5.0
- name: "Run updatecli"
run: updatecli compose apply --clean-git-branches=true ${{ matrix.apply_args }} --experimental
env:
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}
RELEASEPOST_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}