-
-
Notifications
You must be signed in to change notification settings - Fork 113
44 lines (42 loc) · 1.33 KB
/
update.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
36
37
38
39
40
41
42
43
44
---
name: Update packages by aqua-registry-updater
on:
workflow_dispatch: {}
schedule:
- cron: "*/10 * * * *"
env:
AQUA_GLOBAL_CONFIG: ${{ github.workspace }}/aqua-all.yaml
AQUA_LOG_COLOR: always
AQUA_CONFIG: ${{ github.workspace }}/aqua/update.yaml
jobs:
update-pkgs:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
packages: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: aquaproj/aqua-installer@f13c5d2f0357708d85477aabe50fd3f725528745 # v3.1.0
with:
aqua_version: v2.39.0
policy_allow: "true"
aqua_opts: -l -a
env:
AQUA_GITHUB_TOKEN: ${{github.token}}
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{secrets.APP_ID}}
private_key: ${{secrets.APP_PRIVATE_KEY}}
repositories: >-
["${{github.event.repository.name}}"]
permissions: >-
{
"contents": "write",
"pull_requests": "write"
}
- run: aqua-registry-updater
env:
AQUA_REGISTRY_UPDATER_CONTAINER_REGISTRY_TOKEN: ${{github.token}}
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}