-
-
Notifications
You must be signed in to change notification settings - Fork 113
35 lines (33 loc) · 1.05 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
---
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
jobs:
update-pkgs:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: aquaproj/aqua-installer@36dc5833b04eb63f06e3bb818aa6b7a6e6db99a9 # v2.1.2
with:
aqua_version: v2.10.2-1
policy_allow: "true"
aqua_opts: -l -a
env:
AQUA_GITHUB_TOKEN: ${{github.token}}
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@d6edb790cfa657f678d2f6188875e9837622c415 # v1.8.1
with:
app_id: ${{secrets.APP_ID}}
private_key: ${{secrets.APP_PRIVATE_KEY}}
- run: aqua-registry-updater
env:
AQUA_REGISTRY_UPDATER_CONTAINER_REGISTRY_TOKEN: ${{github.token}}
GITHUB_TOKEN: ${{steps.generate_token.outputs.token}}