-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.42 KB
/
updatecli-compose.yml
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
---
name: updatecli-compose
on:
push:
branches:
- main
- edge
workflow_dispatch:
schedule:
- cron: '0 16 * * *' # 16:00 UTC every day
env:
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
COMMITTER_USERNAME: "updatecli[bot]"
COMMITTER_EMAIL: "${{ github.repository_id }}+updatecli[bot]@users.noreply.forklift.run"
permissions:
contents: write
pull-requests: write
jobs:
# Note(ethanjli): we don't use the updatecli config for auto-merging patch updates, because that
# would require either making a personal access token in the PlanktoScope organization or making a
# GitHub App and installing it in the PlanktoScope organization, and both options are not worth
# the administrative hassle (since I don't have access to do those things myself).
containers-pr:
env:
UPDATECLI_CONFIG: .github/updatecli.d/compose-containers-pr.yml
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Setup updatecli
uses: updatecli/updatecli-action@v2
- name: Dry-run updates
run: "updatecli diff --config ${{ env.UPDATECLI_CONFIG }}"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Apply updates
run: "updatecli apply --config ${{ env.UPDATECLI_CONFIG }}"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"